PowerShell Logo Small

Remove-NfsClientgroup



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

Removes a client group from an NFS server.

SYNTAX


Remove-NfsClientgroup [-ClientGroupName] <String[]> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]]
[-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NfsClientgroup [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-ThrottleLimit <Int32>]
-InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-NfsClientGroup cmdlet removes one or more client groups from a Network File System (NFS) server.



<

RELATED LINKS

Get-NfsClientgroup
New-NfsClientgroup
Rename-NfsClientgroup
Set-NfsClientgroup

REMARKS

<

Examples


Example 1: Remove a client group by using a name

PS C:\> Remove-NfsClientGroup -ClientGroupName "Contoso-cg1"
Confirm
Are you sure you want to perform this action?
Performing operation "Delete Clientgroup" on Target "Contoso-cg1".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y



This command removes a client group named Contoso-cg1.




Example 2: Remove a client group by using pipeline input

PS C:\> Get-NfsClientGroup -ClientGroupName "clientgroupA" | Remove-NfsClientGroup
Confirm
Are you sure you want to perform this action?
Performing operation "Delete Clientgroup" on Target "clientgroupA".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y



This command gets the client group that has the name clientgroupA.

The second command uses the pipeline operator to pass the result to Remove-NfsClientGroup, which removes clientgroupA.