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.
Exchange Admin via MFA
Mar 22, 2017Copper Contributor
Anyone have a clue as to how to use MFA login in an unattended powershell script?
I have MFA working fine with powershell interactively - The login and MFA dialogs come up and do the right thing but this does me no good for the scheduled things I need to do off-hours.
TIA
--Brian
Dean_Gross
Mar 22, 2017Silver Contributor
I think that you will need to use a Service account that does not require MFA.
If you have very strict requirements, you may want to use Azure Privileged Identity Management, see https://docs.microsoft.com/en-us/azure/active-directory/active-directory-privileged-identity-management-configure to get started with that.
If you have very strict requirements, you may want to use Azure Privileged Identity Management, see https://docs.microsoft.com/en-us/azure/active-directory/active-directory-privileged-identity-management-configure to get started with that.