PowerShell Logo Small

Set-NfsNetgroup



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

Modifies a netgroup.

SYNTAX


Set-NfsNetgroup [-NetGroupName] <String> [[-AddMember] <String[]>] [[-RemoveMember] <String[]>] [[-LdapServer] <String>] [[-LdapNamingContext] <String>] [-Confirm] [-WhatIf]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?linkid=287523
Get-NfsNetgroup
New-NfsNetgroup
Remove-NfsNetgroup

REMARKS

<

Examples


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.