Set-WssMsoUserAssignment

Set-WssMsoUserAssignment

Assigns an online service account to a user account.

Syntax

Parameter Set: Default
Set-WssMsoUserAssignment [-WssUserName] <String> [-MsoUserName] <String> [ <CommonParameters>]

Detailed Description

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

Parameters

-MsoUserName<String>

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

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

  • 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: Assign an online service account

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

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

Remove-WssMsoUserAssignment

Get-WssMsoAssignedUser

Rename-WssMsoAssignedUser

Set-WssMsoGroupAssignment