Add-WssMsoUser
Add an online service account, and assign it to a user account.
Syntax
Add-WssMsoUser
[-WssUserName] <String>
[-MsoUserName] <String>
[[-License] <MSOLicense[]>]
[<CommonParameters>]
Description
The Add-WssMsoUser cmdlet adds and enables an online service account to aad_1, and assigns that account to a local network user account.
Examples
Example 1: Add an online account
PS C:\> Add-WSSMSOUser -WssUserName "DavidChew" -MsoUserName "DavidChew@TSQA.Contoso.com"
This command adds an online service account DavidChew@TSQA.Contoso.com and assigns it to the local network user account named DavidChew.
1:
PS C:\>
Parameters
-License
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.
Type: | MSOLicense[] |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-MsoUserName
Specifies a user principal name (UPN). The cmdlet adds an online service account that has the UPN that you specify.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WssUserName
Specifies the name of a user account. The cmdlet assigns an online service account to the user account that you specify.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
WssUserName Type: System.String Description: local network account name of user