Converting an Office 365 Domain from Federated to Managed


One day I needed to implement identity synchronization and federation. So, I installed dirsync, plus ADFS. All worked fine and as expected.

I deleted all those instances, the Domain Contoller, the Exchange Mailbox Role and the ADFS.

What I never did was convert back the domain from Federated to Managed in 365.

I thought it was going to be much more complex considering the ADFS doesn't exist anymore, but no.

Super straightforward

  1. Install the required Modules

    1.  Install-Module -Name AzureAD
    2.  Connect-AzureAD
  2. Install the Microsoft Online Services Sign-In Assistant

  3. Install the MSonline Module

    1.  Install-Module MSOnline
  4. Login to 365 and the following command:

    1.  Set-MsolDomainAuthentication -DomainName -Authentication managed

[caption id="" align="aligncenter" width="2272"]

Converted to Managed[/caption]