MFA is a security requirement, especially when managing your environment in the cloud. Microsoft Azure offers free multifactor authentication for Office 365 administrator accounts and if you don’t have one yet, please make sure that all your administrator accounts are using MFA. When managing Exchange Online in Office 365, my favorite method is using Exchange Online PowerShell. But if you use Microsoft step-by-step to connect using a regular PowerShell application, it does work if you are not using MFA (not good!).
So, let’s cover the basic steps to allow an administrator to use Exchange Online PowerShell with MFA. The first step is logged on the Exchange Admin Center, click on Hybrid, and then click on the second Configure button, which is related to Exchange Online PowerShell module.
You will be requested to Install the module, and after that, you will need to confirm the process by clicking on Run in a second dialog box that will pop up. The result of this process will be a new item in your Start button called Microsoft Exchange Online PowerShell click on it.
In the new PowerShell window, we can use the following cmdlet to connect: Connect-EXOPSSession –UserPrincipalName <username>, as depicted in the image below.
At this time, I hope you have already configured MFA to your administrator, and if you have done that, then the MFA will be requested in the new dialog box.
That’s it! By using this method you can take advantage of MFA to increase your security to authenticate in Office 365 to manage your Exchange environment!
Featured image: Shutterstock