external help file | Module Name | online version | schema |
---|---|---|---|
NFS_Cmdlets.xml |
NFS |
2.0.0 |
Modifies a netgroup.
Set-NfsNetgroup [-NetGroupName] <String> [[-AddMember] <String[]>] [[-RemoveMember] <String[]>]
[[-LdapServer] <String>] [[-LdapNamingContext] <String>] [-Confirm] [-WhatIf]
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 (AD DS) or Active Directory Lightweight Directory Services (AD LDS) 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 Administrationhttp://technet.microsoft.com/en-us/library/cc753089.
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.
Specifies an array of host names or IP addresses of client computers to add to a netgroup.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the Lightweight Directory Access Protocol (LDAP) naming context of a netgroup store.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies an LDAP server name of a netgroup store.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies the name of a netgroup. This parameter is mandatory.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Specifies an array of host names or IP addresses of client computers to remove from a netgroup.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False