How to Enable the O365 Modern Authentication prior to Multifactor Authentication Enable for EMS users

MFA Enable for Outlook and rest

09 November 2016


Modern authentication is not turned on by default for Exchange Online. To turn it on, run the Windows PowerShell command in the following procedure.

You can do this on below OS versions.

Windows 10

  • Windows 8 or Windows 8.1
  • Windows Server 2012 or Windows Server 2012 R2
  • Windows 7 Service Pack 1 (SP1)*
  • Windows Server 2008 R2 SP1*

In addition to that you must make sure that you have installed the Microsoft.NET Framework 4.5 or later and then either the Windows Management Framework 3.0 or the Windows Management Framework 4.0

Turn on modern authentication for Exchange Online

Step 1-

After you verify the above requirements are met, Run the PowerShell under Administrator privileges by Selecting Run as Administrator.

Run the below command

Set-ExecutionPolicy RemoteSigned





Step 2-

Connect to Exchange Online

  • On your local computer, open Windows PowerShell and run the following command.

$UserCredential = Get-Credential
In the Windows PowerShell Credential Request dialog box, type your Office 365 user name and password, and then click OK.


  • Run the following command.

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection
Note  for china user kindly refer the link


  • Run the following command.

Import-PSSession $Session



Step 3-

Run the following command:

Set-OrganizationConfig -OAuth2ClientProfileEnabled:$true


Step 4-

Run the following command to verify that change was successful:

Get-OrganizationConfig | ft name, *OAuth*