Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides a resolution to resolve an issue where you receive "Failed to connect to Active Directory Federation Services 2.0 on the local machine" error when converting a domain from federated to managed using Convert-MsolDomainToStandard
cmdlet.
Original KB number: 3018485
Symptoms
When you run the Convert-MsolDomainToStandard
cmdlet to convert a domain from Federated to Managed, you receive the following error message:
Failed to connect to Active Directory Federation Services 2.0 on the local machine.
Please try running Set-MsolADFSContect before running this command again.
Cause
This problem occurs if the server on which you're running the Convert-MsolDomainToStandard
cmdlet is not running Active Directory Federation Services (AD FS).
Resolution
Do one of the following, as appropriate for your situation:
If AD FS is still running, use the
Set-MsolADFSContext
cmdlet to specify the server on which AD FS is running.For example:
Set-MsolADFSContext -Computer <ServerName>
For more information about the Set-MsolADFSContext cmdlet, see Set-MsolADFSContext.
If AD FS is not running, use the
Set-MsolDomainAuthentication
cmdlet to change the domain to a managed domain.For example:
Set-MsolDomainAuthentication -DomainName <DomainName> -Authentication Managed
For more info about the Set-MsolDomainAuthentication cmdlet, see Set-MsolDomainAuthentication.
More information
Still need help? Go to Microsoft Community or Microsoft Entra Forums website.