How to connect to Office365 Exchange Online using Powershell?

First, we run PowerShell as an administrator on our computer and then execute the following commands one by one.

Set-Executionpolicy Remotesigned
Install-Module-Name ExchangeOnlineManagement -Force
Import-Module ExchangeOnline Management

After these commands, the necessary modules will be installed. Anymore we can connect to Exchange Online using the following command;

Connect-ExchangeOnline

Be the first to comment

Leave a Reply

Your email address will not be published.


*