PowerShell Logo Small

Revoke-NfsClientLock



This is the built-in help made by Microsoft for the command 'Revoke-NfsClientLock', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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

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

SYNTAX


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



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Get-NfsClientLock

REMARKS

<

Examples


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\.