Forum Discussion
Thomas
Sep 05, 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 update using Set-MsolUserPrincipalName, however it complains I need to run Connect-MsolService first.
When I do this, I am presented with a basic sign-in box (not MFA) and it just does not work to log in using the same credentials I used with the inital login.
What am I missing here?
Regards,
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
- Manidurai MohanamariappanIron Contributor
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
- ThomasCopper 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
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 SayyedCopper Contributor
When I tried to run connect-msolservice, it gave me a blank screen. same with connect-azureAD.