Rename-WssMsoAssignedUser

Modifies the online service account for a user.

Syntax

Rename-WssMsoAssignedUser
      [-WssUserName] <String>
      [-NewMsoUserName] <String>
      [<CommonParameters>]

Description

The Rename-WssMsoAssignedUser cmdlet modifies the online service account assigned to a local network user account in aad_1.

Examples

Example 1: Modify a Microsoft account

PS C:\> Update-WssMSOAccountName -WssUserName "DavidChew" -NewMsoUserName "DavidChew@TSQA.Contoso.com"

This command modifies the online service account for the user account named DavidChew.

1:

PS C:\>

Parameters

-NewMsoUserName

Specifies an online service account, as a user principal name (UPN). The cmdlet assigns the UPN that you specify to the user that the WssUserName parameter specifies.

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 updates the online service account for the user account that you specify.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

WssUserName Type: System.String Description: local network account name of user