Rename-WssMsoAssignedUser

Rename-WssMsoAssignedUser

Modifies the online service account for a user.

Syntax

Parameter Set: Default
Rename-WssMsoAssignedUser [-WssUserName] <String> [-NewMsoUserName] <String> [ <CommonParameters>]

Detailed Description

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

Parameters

-NewMsoUserName<String>

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.

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 updates the online service account for 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: Modify a Microsoft account

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

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

Get-WssMsoAssignedUser