Unable to connect to exchange online powershell

Occasional Contributor

I am trying to connect to exchange online PowerShell using my MFA enabled admin account in server 2012 r2 but it fails with the error message :the specified ShellId is incorrect or the shell no longer exists on the server. Provide the correct ShellId or create a new shell and retry the operation. however the same admin account works just fine and connects to exchange online in another servers.

And it work for sometimes intermittently in this affected machine.kindly suggest a way to resolve this.

1 Reply

There's no fix, simply try again. Using the -UserPrincipalName parameter seems to have better success rate, but overall the module in general is not very reliable.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies