Add-WssMsoUser
Add-WssMsoUser
Add an online service account, and assign it to a user account.
構文
Parameter Set: Default
Add-WssMsoUser [-WssUserName] <String> [-MsoUserName] <String> [[-License] <MSOLicense[]> ] [ <CommonParameters>]
詳細説明
The Add-WssMsoUser cmdlet adds and enables an online service account to , and assigns that account to a local network user account.
パラメーター
-License<MSOLicense[]>
Specifies an array of user licenses. Specifies an array of licenses as MSOLicense objects. The cmdlet assigns the licenses that you specify to the user account. To obtain MSOLicense objects, use the Get-WssMsoSubscription cmdlet to get subscription information. Subscription information contains the MSOLicenseSuite array that refers to MSOLicense objects.
エイリアス |
なし |
必須? |
false |
位置は? |
3 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-MsoUserName<String>
Specifies a user principal name (UPN). The cmdlet adds an online service account that has the UPN that you specify.
エイリアス |
なし |
必須? |
true |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-WssUserName<String>
Specifies the name of a user account. The cmdlet assigns an 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)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
System.String
WssUserName
Type: System.String
Description: local network account name of user
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Add an online account
This command adds an online service account DavidChew@TSQA.Contoso.com and assigns it to the local network user account named DavidChew.
PS C:\> Add-WSSMSOUser -WssUserName "DavidChew" -MsoUserName "DavidChew@TSQA.Contoso.com"
PS C:\>