Set-WssMsoUserAssignment

Assigns an online service account to a user account.

Syntax

Set-WssMsoUserAssignment
   [-WssUserName] <String>
   [-MsoUserName] <String>
   [<CommonParameters>]

Description

The Set-WssMsoUserAssignment cmdlet assigns an online service account to a local network user account.

Examples

Example 1: Assign an online service account

PS C:\> Set-WssMSOAssignedUser -WssUserName "Admin" -MsoUserName "DavidChew@TSQA.Contoso.com"

This command assigns the online service account DavidChew@TSQA.Contoso.com to the local network user account named Admin.

1:

PS C:\>

Parameters

-MsoUserName

Specifies a user principal name (UPN). The cmdlet assigns the online service account for the UPN that you specify to a user account.

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