This is the built-in help made by Microsoft for the command 'Set-NfsNetgroup', 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.
Modifies a netgroup.
Set-NfsNetgroup [-NetGroupName] <String> [[-AddMember] <String[]>] [[-RemoveMember] <String[]>] [[-LdapServer] <String>] [[-LdapNamingContext]
<String>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
The Set-NfsNetgroup cmdlet adds or removes netgroup members. You can specify a netgroup member by its host name or IP address.
You can modify netgroups that are stored in Active Directory Domain Services (ADDS) or Active Directory Lightweight Directory Services (ADLDS)
only. To modify a netgroup that is stored in Network Information Service (NIS), use the corresponding NIS administration tool. For more
information about how to manage an NIS server, see Server for NIS Administration.
<
Get-NfsNetgroup
New-NfsNetgroup
Remove-NfsNetgroup
<
Example 1: Add a member to a netgroup
PS C:\> Set-NfsNetgroup -LdapServer "Contoso.com" -NetGroupName "AppServers" -AddMember "APPServer-08"
NetgroupName : AppServers
NetgroupNamingContext : CN=mappedidentity,DC=Contoso,DC=com
NetgroupMembers : {appserver-08, appserver-07}
This command adds a member that is named APPServer-08 to a netgroup that is named AppServers, in a network store that is named Contoso.com.