Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-NfsNetgroup

Set-NfsNetgroup

microsoft.fileservices.powershell.nfs.dll

Synopsis

Modifies a netgroup.

Syntax

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

Detailed 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 Administration.

Parameters

-AddMember <String[]>

Specifies an array of host names or IP addresses of client computers to add to a netgroup.

Aliases

add

Required?

false

Position

2

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-LdapNamingContext <String>

Specifies the Lightweight Directory Access Protocol (LDAP) naming context of a netgroup store.

Aliases

dn

Required?

false

Position

5

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-LdapServer <String>

Specifies an LDAP server name of a netgroup store.

Aliases

ldap

Required?

false

Position

4

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-NetGroupName <String>

Specifies the name of a netgroup. This parameter is mandatory.

Aliases

name,ngname

Required?

true

Position

1

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-RemoveMember <String[]>

Specifies an array of host names or IP addresses of client computers to remove from a netgroup.

Aliases

remove

Required?

false

Position

3

Default value

None

Accept pipeline input?

True (ByPropertyName)

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Prompts you for confirmation before running the cmdlet.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Aliases

None

Required?

false

Position

named

Default value

false

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type

Microsoft.FileServices.Powershell.Nfs.NetGroup

Notes

None

Examples

Example 1: Add a member to a netgroup

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.

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}

Online Version
Get-NfsNetgroup
New-NfsNetgroup
Remove-NfsNetgroup