Migrating Macs
There are two ways to migrate macOS devices from one MDM to another:
- For supervised devices (in Apple Business Manager): Migration requires changing the MDM server in ABM and disenrolling the device. Employees will receive a popup asking them to re-enroll in FleetDM, Primo's MDM.
This change in ABM will not reset or affect any device data.
By updating the MDM server in ABM, we can create devices in Primo and automatically assign them to your employees for migration tracking.
Note that you'll need to manually remove devices from your old MDM, as this process doesn't do it automatically.
- For unsupervised devices: Apple doesn't allow multiple MDMs on a single device. The migration process requires two steps: first disenroll from the current MDM, then re-enroll in the new one. After removing devices from your previous MDM, you can use Primo's "invite to MDM" function to streamline deployment. The system will automatically send reminders every 7 days to employees who haven't enrolled, and you can monitor the migration progress through your dashboard.
Migrating Windows Devices
Before starting
If you have connected Intune and Entra ID, here is the procedure to follow before initiating the migration
- Set FleetDM up as external MDM on Entra ID : https://primo.mdm.getprimo.com/settings/integrations/automatic-enrollment/windows
- On Entra, switch the automatic enrollment to Fleet :
- Go to: https://entra.microsoft.com/#view/Microsoft_AAD_IAM/MdmList.ReactView (or search “Mobility” on entra.microsoft.com)
- Alternatively, go to: https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/Mobility (or search “Mobility” on portal.azure.com)
- Then select “Intune”
- Select “None” in both options and Save
- Do the same on “Fleet” but select “All” instead
Migrating your devices individually from Intune
Follow these steps to migrate your devices from Intune one by one :
- Enroll the computer in Primo, the device will be created in Primo with the status "Enrolled in another MDM"
- Use the migration button in Primo to apply the migration script
Migrating all your devices from Intune
Follow these steps to migrate your devices from Intune:
- Upload the following script
- Find your full MDM URL:
- The format is:
https://REPLACE_BY_COMPANY_NAME.mdm.getprimo.com/api/mdm/microsoft/discovery
- Replace
REPLACE_BY_COMPANY_NAME
with the company name / domain that is present in the Fleet URL
- The format is:
- Paste it in the script, replacing
INPUT_URL_HERE
- Upload the script on the your MDM instance (Controls > Scripts)
$EnrollmentsPath = "HKLM:\SOFTWARE\Microsoft\Enrollments\" $Enrollments = Get-ChildItem -Path $EnrollmentsPath $DiscoveryServerFullUrls = @("INPUT_URL_HERE") Foreach ($Enrollment in $Enrollments) { $EnrollmentObject = Get-ItemProperty Registry::$Enrollment if ($EnrollmentObject."DiscoveryServiceFullURL" -in $DiscoveryServerFullUrls ) { $EnrollmentPath = $EnrollmentsPath + $EnrollmentObject."PSChildName" Write-Host "Suppression de l'inscription : $EnrollmentPath" Remove-Item -Path $EnrollmentPath -Recurse Write-Host "Inscription supprimée. Réinscription de l'appareil..." & "C:\Windows\System32\deviceenroller.exe /c /AutoEnrollMDM" Write-Host "L'appareil a été réinscrit." } }
- Find your full MDM URL:
- Create a policy to migrate
- Re-use the URL from above
- Paste it in the query below, replacing
INPUT_URL_HERE
SELECT 1 FROM registry WHERE path LIKE 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\%%' AND name = "DiscoveryServiceFullURL" AND data NOT IN ("INPUT_URL_HERE")
- Link script to policy
- Navigate to Policies > No team
- Click on “Manage automation” and link the script you uploaded to the newly created policy