Update-O365AccountName
Update-O365AccountName
Updates the email name for an user account.
Sintaxis
Parameter Set: Default
Update-O365AccountName [-LocalAccountName] <String> [-NewEmailName] <String> [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-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.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-NewEmailName<String>
Specifies the new email name for the user account.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Ejemplos
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:\>