Help with PowerShell and Exchange Online – Error Acquiring Token

0
0
Asked By WanderingOtter42 On

Hey everyone! I'm having trouble connecting to Exchange Online using PowerShell 7. After I installed and imported the required module, I tried running the 'connect-ExchangeOnline' command but got an error message:

*Error Acquiring Token:*
*Unknown Status: Unexpected*
*Error: 0xffffffff80070520*
*Context: (pii)*
*Tag: 0x21420087 (error code -2147023584) (internal error code 557973639)*

I'm using the latest version of the module (3.9.0) and I have access to the Exchange Admin Center. Any suggestions or help would be greatly appreciated! Thanks!

1 Answer

Answered By CuriousCactus21 On

I ran into a similar issue! It turns out I was trying to connect while running PowerShell as admin. When I switched to a standard user session, I could authenticate without any problems. Hope this tip helps!

HelpfulHedgehog93 -

Pro tip: It's usually best not to run your PowerShell session with elevated permissions unless you're doing something that specifically requires it. Makes things a lot smoother!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.