Set-NfsNetgroup
Set-NfsNetgroup
Modifies a netgroup.
構文
Parameter Set: Default
Set-NfsNetgroup [-NetGroupName] <String> [[-AddMember] <String[]> ] [[-RemoveMember] <String[]> ] [[-LdapServer] <String> ] [[-LdapNamingContext] <String> ] [-Confirm] [-WhatIf] [ <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 (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.
パラメーター
-AddMember<String[]>
Specifies an array of host names or IP addresses of client computers to add to a netgroup.
エイリアス |
add |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-LdapNamingContext<String>
Specifies the Lightweight Directory Access Protocol (LDAP) naming context of a netgroup store.
エイリアス |
dn |
必須? |
false |
位置は? |
5 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-LdapServer<String>
Specifies an LDAP server name of a netgroup store.
エイリアス |
ldap |
必須? |
false |
位置は? |
4 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-NetGroupName<String>
Specifies the name of a netgroup. This parameter is mandatory.
エイリアス |
name,ngname |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-RemoveMember<String[]>
Specifies an array of host names or IP addresses of client computers to remove from a netgroup.
エイリアス |
remove |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- Microsoft.FileServices.Powershell.Nfs.NetGroup
例
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"