Skip to content

Latest commit

 

History

History
164 lines (124 loc) · 3.57 KB

Set-NfsNetgroup.md

File metadata and controls

164 lines (124 loc) · 3.57 KB
external help file Module Name online version schema
NFS_Cmdlets.xml
NFS
2.0.0

Set-NfsNetgroup

SYNOPSIS

Modifies a netgroup.

SYNTAX

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

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

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.

PARAMETERS

-AddMember

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

-LdapNamingContext

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

-LdapServer

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

-NetGroupName

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

-RemoveMember

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

-Confirm

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

-WhatIf

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

INPUTS

OUTPUTS

Microsoft.FileServices.Powershell.Nfs.NetGroup

NOTES

RELATED LINKS

Get-NfsNetgroup

New-NfsNetgroup

Remove-NfsNetgroup