Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
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.
Aliases |
none |
Required? |
false |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies a user principal name (UPN). The cmdlet adds an online service account that has the UPN that you specify.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
Specifies the name of a user account. The cmdlet assigns an online service account to the user account that you specify.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue, ByPropertyName) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
System.String
WssUserName
Type: System.String
Description: local network account name of user
The output type is the type of the objects that the cmdlet emits.
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:\>