Update-O365AccountName

Updates the email name for an office_365_2 user account.

Syntax

Update-O365AccountName
      [-LocalAccountName] <String>
      [-NewEmailName] <String>
      [<CommonParameters>]

Description

The Update-O365AccountName cmdlet updates the email name for an office_365_1 user account. The name of an office_365_2 user account is also called a Microsoft online service ID.

Examples

Example 1: Update the email name for a user account

PS C:\> Update-O365AccountName -LocalAccountName "PattiFuller" -NewEmailName "Patti@Contoso.com"

This command updates the email name of the office_365_2 account that is assigned to the local user account named PattiFuller.

1:

PS C:\>

Parameters

-LocalAccountName

Specifies the name of a local Active Directory user account. The cmdlet updates the email name for the office365_sbp_3 user account that is assigned to the local user name that you specify.

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

-NewEmailName

Specifies the new email name for the office365_sbp_3 user account.

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