Fix unable to connect to Exchange Online via PowerShell Cmdlet

If the Global Admin account is unable to use the ‘Connect-ExchangeOnline’ command to connect to Exchange via PowerShell and receives a “Something went wrong” error message after signing in.

It shows the error “Error Acquiring Token” after closing the interactive sign-in window.

You can follow the steps below to solve the problem.

1.Run the command below to uninstall the ExchangeOnlineManagement module.

Uninstall-Module ExchangeOnlineManagement

2.Run the command below to install the old version of the ExchangeOnlineManagement module.

Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.6.0

3.Run the command below to import the ExchangeOnlineManagement module.

Import-Module ExchangeOnlineManagement

4.Run the command below to connect to Exchange Online.

Connect-ExchangeOnline -UserPrincipalName "your account"

I hope you enjoy this post.

Cary Sun

X: @SifuSun

Web Site: carysun.com

Blog Site: checkyourlogs.net

Blog Site: gooddealmart.com

Amazon Author: Amazon.com/author/carysun

About Post Author

Leave a Reply