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
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!
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!