Add-WssUserGroupMembership
Add-WssUserGroupMembership
Adds a user account to a user group.
構文
Parameter Set: Default
Add-WssUserGroupMembership -GroupName <String> -UserName <String> [ <CommonParameters>]
詳細説明
The Add-WssUserGroupMembership cmdlet adds a user account to a user group.
パラメーター
-GroupName<String>
Specifies the name of a user group. The cmdlet adds a user account to the group that you specify.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UserName<String>
Specifies the name of a user account. The cmdlet adds the account that you specify to a user group.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Add a user account to a user group
This command adds the user account named PattiFuller to the user group named Support.
PS C:\> Add-WssUserGroupMembership -GroupName "Support" -UserName "PattiFuller"