NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Powershell commands for file locks

cfrank
4,197 Views

Hi all,

 

Are there any commands to help with being able to see and release file locks? Something similar to these ZAPI's

Lock-get-iter

Lock-break-iter

 

I don't see anything.

 

TIA,
Frank

2 REPLIES 2

mbeattie
4,147 Views

Hi Frank,

 

I think these are the cmdlet's you are looking for:

 

PS C:\> get-command -module netapp.ontap -Name *nclock* | Select-Object -Property Name

Name
----
Get-NcLock
Remove-NcLock

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public