Add-WssMsoUser

Add-WssMsoUser

Add an online service account, and assign it to a user account.

Syntax

Parameter Set: Default
Add-WssMsoUser [-WssUserName] <String> [-MsoUserName] <String> [[-License] <MSOLicense[]> ] [ <CommonParameters>]

Detailed Description

The Add-WssMsoUser cmdlet adds and enables an online service account to , and assigns that account to a local network user account.

Parameters

-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.

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-MsoUserName<String>

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

-WssUserName<String>

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

<CommonParameters>

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).

Inputs

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

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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:\> 

Disable-WssMsoUser

Enable-WssMsoUser

Get-WssMsoUser

Remove-WssMsoUser