Script Error when using MSOnline module

Hello Everyone,

When attempting to use the MSOnline module to connect using Connect-MsolService, a script error occurs. Windows 10 21H1. Office 365 Admin account using MFA. The window to enter your username/password does appear, and the information is entered. The MFA window should then appear to let you know to approve the request, however instead, a script error occurs (PS Error). This has started over the last week, and not sure exactly how to address this. Thank you!

I removed MFA on my Office 365 and all devices. Re-enabled MFA, connected my device via MS Authenticator, then tried running Connect-MsolService again. It worked.

1 Like

Great that you found a solution. And thanks for sharing. :+1:t4: :slight_smile: