Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titlePrerequisites

You must have a licensed corporate Office 365 account, connect EmpowerID to Office 365, and set up SSO with Office 365.

To configure Exchange Online for Modern Authentication

  1. Run Azure AD PowerShell module as an administrator.
  2. Run the following cmdlet to create a credential object:

    Code Block
    languagepowershell
    themeDJango
    $credential = Get-Credential


  3. In the Credentials window that appears, type the username and password for an Office 365 global administrator and click OK.

  4. Once you have connected, run the following cmdlet to create a remote PowerShell session with Exchange Online:

    Code Block
    languagepowershell
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Cred -Authentication Basic -AllowRedirection


  5. Run the following cmdlet to set the session with Exchange Online:

    Code Block
    languagepowershell
    Import-PSSession $Session


  6. Run the following cmdlet to enable Modern Authentication for Exchange Online:

    Code Block
    languagepowershell
    Set-OrganizationConfig -OAuth2ClientProfileEnabled:$true


  7. Run the following cmdlet to check that Modern Authentication for Exchange Online has been enabled:

    Code Block
    languagepowershell
    Get-OrganizationConfig | ft name, *OAuth*


  8. Run the following cmdlet to close the session:

    Code Block
    languagepowershell
    Remove-PSSession $Session





...