Forum Discussion
Connect to Exchange Online PowerShell using MFA
- Apr 20, 2017
That's the joy of running those click-once apps...
Try re-donwloading/installing it via IE, see if it makes a difference. If it still doesnt work, you probably have some restrictions set on the IE zones that prevents the app from running. Running .Net code needs to be enabled for example.
That's the joy of running those click-once apps...
Try re-donwloading/installing it via IE, see if it makes a difference. If it still doesnt work, you probably have some restrictions set on the IE zones that prevents the app from running. Running .Net code needs to be enabled for example.
- PownasDec 21, 2019Copper Contributor
Thanks ALOT!
Have been looking every where to find a solution, and then just logon and download from IE fixed everything.. GG played Microsoft... 😕
Not even working in Edge Beta (Chromium browser Edge), that should have old IE support. 😞But finally happy that it works for me. 🙂
- FrenezOrgFeb 25, 2020Copper Contributor
It works on Edge Chromium now. You have to enabled the following flag: edge://flags/#edge-click-once
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/mfa-connect-to-exchange-online-powershell?view=exchange-ps#what-do-you-need-to-know-before-you-begin
- kathyMar 25, 2019Brass Contributor
Thanks VasilMichev . You saved the day.
- Mar 22, 2018omg! I was strugling with exatly the same thing today.. strange that it does not work with other browsers.
Anyhow! i got the module now and im happy :) - Jason RhodesApr 20, 2017Iron Contributor
Thanks for that VasilMichev. I read the instructions very cleary and at no stage did they stipulate that it had to be downloaded / run via IE. As soon as I did that it worked perfectly, and I was able to login with my MFA enabled account.
I assume this is the only PowerShell app I can use for this purpose and I can't now use my other PowerShell ISE for MFA also?
- Hongwoo JinApr 25, 2019Copper Contributor
Yes ,right.
Even if I download file from chrome, it cannot work then it shows error like below,
But when I download it from internet explorer , it can show message then you click install button.
Then you can see it like this.
- Clint OliveiraJan 17, 2019Brass Contributor
To use MFA PowerShell in ISE you could try the following.
- download and install the MFA PowerShell from the Exchange Online Admin Center (hybrid tab)
- then run the following in ISE whenever you connect
$CreateEXOPSSession = (Get-ChildItem -Path $env:userprofile -Filter CreateExoPSSession.ps1 -Recurse -ErrorAction SilentlyContinue -Force | Select -Last 1).DirectoryName
. "$CreateEXOPSSession\CreateExoPSSession.ps1"
- this will replicate whatever happens in the MFA PowerShell in ISE
- Connect via:
Connect-EXOPSSession -UserPrincipalName user@domain.com
- Carry4IT MegensFeb 08, 2019Brass Contributor
The problem is in the first step, download and install. Indeed *only* possible using IE.
Sigh... Thanks for your answer VasilMichev