Update-O365AccountName

Update-O365AccountName

Updates the email name for an user account.

構文

Parameter Set: Default
Update-O365AccountName [-LocalAccountName] <String> [-NewEmailName] <String> [ <CommonParameters>]

詳細説明

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

パラメーター

-LocalAccountName<String>

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

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-NewEmailName<String>

Specifies the new email name for the user account.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Update the email name for a user account

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

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

関連トピック

Get-O365User