Created
February 25, 2015 19:54
-
-
Save burn2delete/d4b8675d9346d6ca7288 to your computer and use it in GitHub Desktop.
Update the Office365 Email (proxyAddress) to match UPN
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
$cred = Get-Credential | |
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic -AllowRedirection | |
Import-PSSession $session | |
Get-Mailbox -Filter * | ForEach-Object {Set-Mailbox -Identity $_.UserPrincipalName -WindowsEmailAddress $_.UserPrincipalName -Verbose} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment