PowerShell Logo Small

Get-NfsClientLock



This is the built-in help made by Microsoft for the command 'Get-NfsClientLock', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets file locks that a client computer holds on an NFS server.

SYNTAX


Get-NfsClientLock [[-Path] <String[]>] [[-LockType] <ClientLockType[]>] [[-StateId] <String>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-NfsClientLock [[-Path] <String[]>] [[-LockType] <ClientLockType[]>] [[-ComputerName] <String>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NfsClientLock cmdlet gets locks that client computers hold for files that a Network File System (NFS) server shares.


For NFS v3 protocol locks, this cmdlet gets NFS client locks based on the list of client computers that hold locks to a particular file, and the list of files that a
particular client computer has locked.


For NFS v4 protocol locks, this cmdlet gets NFS client locks based on the list of files that a particular client computer has locked, and the state identifiers of the locked
files.


You can also use the LockType parameter to get locked files on an NFS server based on the NFS protocol that the NFS client uses.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=287486
Revoke-NfsClientLock

REMARKS

<

Examples


Example 1: Get locked files on a local NFS server

PS C:\> Get-NfsClientLock -Path c:\shares\NFSshare01\*



This command gets all the locked files on a local NFS server that have a path that begins with C:\shares\NFSshare01\.




Example 2: Get locked files on a NFS server that have NLM lock type

PS C:\>Get-NfsClientLock –LockType NLM



This command gets all the locked files on the server that have a NLM lock type.