Connecting to EXO

August 3, 2017 | by iaur | posted as Connect to M365 Services, PowerShell

Open PowerShell as an administrator then execute each line one at a time.

Set-ExecutionPolicy RemoteSigned
$credential = Get-Credential
$exchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “” -Credential $credential -Authentication “Basic” -AllowRedirection
Import-PSSession $exchangeSession -DisableNameChecking

Having an access denied error? Try connecting with modern authentication

Feedback or Help?

Should you have one, click here

Boring Ads. Pardon me :)