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 10, 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.
Mike Platvoet
Nov 10, 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.
escupham
Mar 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...
- Dean_GrossMar 22, 2017Silver Contributor
You need to use the PnP SharePoint cmdlets to use MFA with SPO, see https://github.com/SharePoint/PnP-PowerShell,
If the account requires MFA, the UseWebLogin parameter is needed, see https://github.com/SharePoint/PnP-PowerShell/blob/master/Documentation/ConnectPnPOnline.md
- Lou_MickleyApr 25, 2017Brass Contributor
This works well now for using PowerShell with SharePoint Online and MFA - interactive, but approach works with MFA - https://technet.microsoft.com/en-us/library/fp161372.aspx
- VasilMichevApr 25, 2017MVP
You need the latest SPO PowerShell module version though: https://www.microsoft.com/en-us/download/details.aspx?id=35588&751be11f-ede8-5a0c-058c-2ee190a24fa6=True
And, SfBO PowerShell also supports MFA now: https://www.microsoft.com/en-us/download/details.aspx?id=39366