Office 365 – Install Powershell plugin for Exchange Online and connect to tenant
1. Open elevated PowerShell window and type in the following commands:
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5
2. Choose yes for prompts to install NuGet and to approve an untrusted repository
3. Enter Line Set-ExecutionPolicy RemoteSigned
4. Choose yes for prompt to change execution policy
5. Enter Line Import-Module ExchangeOnlineManagement
6. Enter Line Connect-ExchangeOnline -UserPrincipalName [replace this with email address of global admin]
7. An OAUTH box will pop up, sign in with the global admin account