PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Revoke-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.


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


Revoke-NfsClientLock [-Path] <String[]> [[-LockType] <ClientLockType[]>] [[-StateId] <String>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Revoke-NfsClientLock [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Revoke-NfsClientLock [-Path] <String[]> [[-LockType] <ClientLockType[]>] [[-ComputerName] <String>] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit
<Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]

Search powershellhelp.space


The Revoke-NfsClientLock cmdlet releases locks that a client computer currently holds for files that a Network File System (NFS) server shares. You can select the locks to
revoke by specifying the path of the files. The Path parameter supports wildcards, so you can revoke multiple locks that match the specified pattern.

You can revoke NFS v4 protocol locks by specifying the state identifier of the locked files. You can revoke NFS v3 protocol locks by specifying the computer name of the NFS
client that holds the lock on the files.



Online Version: http://go.microsoft.com/fwlink/?linkid=287504




Example 1: Revoke the lock on all files

PS C:\> Revoke-NfsClientLock -Path c:\shares\*

This command revokes the lock on all the files on a local NFS server that have a path that begins with c:\shares\.