Forum Discussion
nikitamobile855
Mar 24, 2022Brass Contributor
MDM Authority change
Hello everyone, I'm not able to change MDM authority from O365 to Intune. All of the guides refer to some banner to pop up which is not happening in my case
Apr 15, 2022
Maybe using a powershell script to change it ?
Connect-MSGraph
$mdmAuth = (Invoke-MSGraphRequest -Url "https://graph.microsoft.com/beta/organization('$OrgId')?`$select=mobiledevicemanagementauthority" -HttpMethod Get -ErrorAction Stop).mobileDeviceManagementAuthority
# Intune Instellen als MDM Authority
if($mdmAuth -notlike "intune")
{
$OrgID = (Invoke-MSGraphRequest -Url "https://graph.microsoft.com/v1.0/organization" -HttpMethod Get -ErrorAction Stop).value.id
Invoke-MSGraphRequest -Url "https://graph.microsoft.com/v1.0/organization/$OrgID/setMobileDeviceManagementAuthority" -HttpMethod Post -ErrorAction Stop
}
as mentioned in this blog
https://call4cloud.nl/2021/01/intune-battle-of-the-mdm-authority/