You'll want to use mggraph instead:
https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation?view=graph-powershell-1.0
Update-MgDomain -DomainId $domain -AuthenticationType "Managed"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Change my domains from federated to managed. i log into msgraph online fine. When I run the command Set-MsolDomainAuthentication -Authentication Managed -DomainName <mydomain>
Set-MsolDomainAuthentication : You must call the Connect-MsolService cmdlet before calling any other cmdlets.
When I try to connect using; Connect-MsolService : Access Denied. You do not have permissions to call this cmdlet. Am using a tenant account with Global Admin.
What am I doing wrong. I was always able to connect before.
Thanks,
Mark
You'll want to use mggraph instead:
https://learn.microsoft.com/en-us/powershell/microsoftgraph/installation?view=graph-powershell-1.0
Update-MgDomain -DomainId $domain -AuthenticationType "Managed"