
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “” -Credential $cred -Authentication Basic –AllowRedirectionĢ. Firstly you’ll need to connect to your Office 365 tenant’s Exchange Online PowerShell.


With these two requirements in place, you should run through the following steps.ġ. You’ll also possibly need to enable signed scripts to be run in Powershell, if you haven’t already done so. If you want to change an Office 365 user’s primary email address when it’s synchronised with on premise Active Directory, you’ll need to have administrator access to PowerShell. Need to change an Office 365 user’s primary email address? We’ll show you how.
