Hello Neeraj Kumawat,
Thanks for your question
Use Microsoft Graph instead. MSOnlne module is deprecated
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Community,
Good day!
We are unable to change the status of domain from federated to managed, even though tried with all super admin account but it won't to allow to connect-msolservice as well in the powershell.
Hello Neeraj Kumawat,
Thanks for your question
Use Microsoft Graph instead. MSOnlne module is deprecated
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola
Hello Neeraj Kumawat,
As suggested by Abiola Akinbade that MS-Online is deprecated, I suggest you to install Microsoft Graph Powershell to execute the command to convert your federated domain to managed.
To perform this all you need is access to federation server and global admin account which has ".onmicrosoft.com" suffix.
Please refer the below document to install Microsoft Graph Powershell.
Install-Module Microsoft.Graph -Force
Reference :
https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation?view=graph-powershell-1.0
Please run the below command to connect to your Entra-ID tenant.
Connect-MgGraph
Please login with Global Admin user account which has ".onmicrosoft.com" suffix.
Ref:
You can run below commands in Graph PowerShell from the device which is a federation server.
Convert-MsolDomainToStandard -DomainName <DomainName> (You will have to run this command if you are using ADFS for federation)
If you are using any other identity provider for federation then you can replace above last command with below command.
Set-MsolDomainAuthentication -DomainName <DomainName> -Authentication Managed
Let me know if you have any further questions.