Forum Discussion
Connect -MsolService does not work with MFA
- Sep 05, 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
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
- ThomasSep 05, 2017Copper Contributor
Thanks a lot for your reply.
I thought I had the latest, but I went to my Exchange Admin Center under hybrid and installed the latest. Now it seems to work fine and I am presented with the same MFA login box when I use Connect-MsolService cmdlet.
Regards,
Thomas
- VasilMichevSep 05, 2017MVP
Just to add some links:
AzureAD V2 module: https://www.powershellgallery.com/packages/AzureAD/2.0.0.131
MSOnline module: https://www.powershellgallery.com/packages/MSOnline/1.1.166.0
In case you want an old-school MSI install: https://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185
- Aawesh SayyedSep 05, 2018Copper Contributor
When I tried to run connect-msolservice, it gave me a blank screen. same with connect-azureAD.
- Aawesh SayyedSep 05, 2018Copper ContributorI 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