Forum Discussion
Thomas
Sep 04, 2017Copper Contributor
Connect -MsolService does not work with MFA
Community My Global Admin account in my tenant is configured for MFA. I have installed MS Exchange Online PowerShell Module and I am able to successfully log in with MFA. I need to perform an...
- Sep 04, 2017
i think, you are using old version Azure active directory module powershell, so you can try with new version 1.1.166.0 or 2.0
Aawesh Sayyed
Sep 05, 2018Copper Contributor
I was able to fix it by running the below commands in PS ISE as admin:
Find-Module MSOnline
Install-Module MSOnline
Import-Module msonline
Connect-MsolService
Find-Module MSOnline
Install-Module MSOnline
Import-Module msonline
Connect-MsolService
Nov 08, 2018
I ran into a similar issue myself recently on a PC. For me, the issue was also an outdated MSOnline package. However, I had the original 1.0 module which came via MSI. I had to uninstall 1.0 first from Control Panel before it would let me run Install-Module -Name MSOnline
I documented the process here https://supertekboy.com/2018/11/07/connect-msolservice-may-fail-when-mfa-is-enabled/
- AshromJan 09, 2019Copper Contributor
I had the same problem and Gareth your article Worked 100%
Thanks
Ash