Open Exchange Online Powershell without MFA
Connect to Exchange Online Powershell without MFA
Open an elevated Powershell. Click Yes at the User Access control Window.
Set the execution policy to RemoteSigned by running the following command.
Type Y and enter.
Type the following command and press enter button. Enter your Office 365 credentials at the popup.
$UserCred = Get-Credential
Prepare the session by running the following command.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCred -Authentication Basic -AllowRedirection
Import the session using the following command.
You will see the following screen when the command is being run successfully.
Once it is completed you will see the following screen.
Now you are connected to Exchange Online Powershell.
If you want to login to Exchange Online Powershell with MFA please check this article