Forum Discussion
Dean_Gross
Apr 24, 2018Silver Contributor
Can no longer run Powershell script
I'm trying to create a script that will copy user accounts from SPO Groups to Office Groups. I'm using an global admin account that has MFA. Yesterday it worked, but today I'm getting the following e...
VasilMichev
Apr 24, 2018MVP
That's usually a issue on the server-side, simply retrying should route your request to a different server and get it to work. Do you mean that it happens continuously?
Why are you loading the module like that btw? You are practically duplicating the connect part.
Dean_Gross
Apr 24, 2018Silver Contributor
Thanks, I was having problems connecting that I thought were due to MFA and I read an article yesterday that showed me this approach https://blogs.technet.microsoft.com/canitpro/2017/08/23/powershell-basics-connecting-to-exchange-online-using-multi-factor-authentication/
Do you have another way that works?
- VasilMichevApr 24, 2018MVP
Well that module supports MFA, so you should not have any issues with it. If you want to bypass MFA, best thing to do is configure the "trusted IPs" option, the MFA module will respect that and you can still login with just a password.
If you are getting the same error when trying the "regular" way to connect via the MFA module, that's definitely something on the backend, so open a support case.