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

MFA Enable for Outlook and rest

09 November 2016

02:22

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

clip_image001

clip_image002

clip_image003

clip_image004

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.

clip_image005

  • Run the following command.

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Note  for china user kindly refer the link https://partner.outlook.cn/PowerShell.

clip_image006

  • Run the following command.

Import-PSSession $Session

clip_image007

clip_image008

Step 3-

Run the following command:

Set-OrganizationConfig -OAuth2ClientProfileEnabled:$true

clip_image009

Step 4-

Run the following command to verify that change was successful:

Get-OrganizationConfig | ft name, *OAuth*

clip_image010