Set-WssMsoUserAssignment
Set-WssMsoUserAssignment
Assigns an online service account to a user account.
構文
Parameter Set: Default
Set-WssMsoUserAssignment [-WssUserName] <String> [-MsoUserName] <String> [ <CommonParameters>]
詳細説明
The Set-WssMsoUserAssignment cmdlet assigns an online service account to a local network user account.
パラメーター
-MsoUserName<String>
Specifies a user principal name (UPN). The cmdlet assigns the online service account for the UPN that you specify to a user account.
エイリアス |
なし |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-WssUserName<String>
Specifies the name of a user account. The cmdlet assigns the online service account to the user account that you specify.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue, ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- WssUserName
Type: System.String
Description: local network account name of user
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Assign an online service account
This command assigns the online service account DavidChew@TSQA.Contoso.com to the local network user account named Admin.
PS C:\> Set-WssMSOAssignedUser -WssUserName "Admin" -MsoUserName "DavidChew@TSQA.Contoso.com"
PS C:\>