Forum Discussion
Mike Platvoet
Aug 01, 2016Steel Contributor
Authenticating to O365 using Powershell and MFA
I am running into issues with autheticating to O365 on Powershell and in this case my account has been enabled with MFA. I already installed the preview from https://blogs.technet.microsoft.com/ente...
- Nov 09, 2016
To save everyone from having to read AnnaChu full post: there is now an Exchange Online Powershell module in preview available that supports MFA. I just tested it and it works (so far) as expected. Go to http://aka.ms/exopspreview to download the preview.
Louis Simonetti
Sep 14, 2016Copper Contributor
Not for connecting to Exchange Online, that is purely a PSSession in PowerShell, which is not ADAL enabled. The rest of the services, yes, those cmdlets work, but Exchange and EOP, are just PSSessions.
Nils van Woensel
Sep 26, 2016Copper Contributor
I agree that all PS connecting to O365 should support the ADAL library.
Waiting for this feature already more than 1 year.
- AnnaChuNov 07, 2016Former Employee
Making sure you're aware of this thread here: https://techcommunity.microsoft.com/t5/Identity-Authentication/MFA-and-Powershell/m-p/23579/thread-id/116/highlight/true#M130
- Mike PlatvoetNov 09, 2016Steel Contributor
To save everyone from having to read AnnaChu full post: there is now an Exchange Online Powershell module in preview available that supports MFA. I just tested it and it works (so far) as expected. Go to http://aka.ms/exopspreview to download the preview.
- escuphamMar 02, 2017Steel Contributor
We enabled MFA for our Exchange Admins and they are able to run the PowerShell okay. We are finding that they are having to re-auth every 30 minute or so. Anyone know if there's a way to extend this?
Also, is Exchange PowerShell the only one that is supporting MFA at this time? I'm not seeing anything for SharePoint...