Connect to Exchange Online via Powershell

Modified on Fri, 22 Nov, 2019 at 5:02 PM

On your local computer, open Windows PowerShell and run the following command.

$UserCredential = Get-Credential



$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection




Import-PSSession $Session -DisableNameChecking




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article