Created
February 3, 2020 21:39
-
-
Save carlosdoliveira/e11dfe75f3bb49f504cea492d1df2601 to your computer and use it in GitHub Desktop.
Enables you to update primary SMTP of a O365 Group Mailbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$UserEmail="email@dominio.com.br" | |
$NewEmail="email2@dominio.com.br" | |
# Obter Informação sobre Email Principal | |
Get-UnifiedGroup -Identity $UserEmail | fl PrimarySmtpAddress | |
# Alterar o Email da mailbox | |
Set-UnifiedGroup -Identity $UserEmail -PrimarySmtpAddress $NewEmail | |
# Validar se o E-mail foi alterado | |
Get-UnifiedGroup -Identity $NewEmail | fl PrimarySmtpAddres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment