Why MDM keeps trying to re-enroll and how to block it
Mobile Device Management (MDM) software re-enrolls because it is designed to maintain control — if it detects you have removed it, many versions automatically attempt to reinstall themselves at the next network connection or device restart. The re-enrollment loop happens because the MDM profile remains partially on your device even after you think you have deleted it, or because a management server is still pushing commands to re-register your phone or computer.
Stopping the re-enrollment requires removing both the MDM profile itself and the configuration that tells your device to accept it. On most devices, this means going into settings to delete the profile, then checking whether a separate management account or agent software is still running in the background. If your device is work-owned or enrolled through your employer, your company may have the ability to re-enroll it remotely — in that case, you will need to contact your IT department or device administrator to have them remove your device from their management system first.
Key Takeaways
- MDM re-enrollment happens because the management profile or agent software is still present on your device, even if you deleted the visible profile.
- You must remove both the MDM profile in settings and any background management agent or service to stop the loop.
- On work devices, the company's management server may be pushing re-enrollment commands — contact your IT department to have them remove your device from their system.
- After removing MDM, restart your device and check that no management notifications or prompts reappear within 24 hours.
- If re-enrollment continues after you have removed everything, a factory reset may be necessary, though this erases all data on the device.
Remove the MDM profile on iPhone or iPad
On Apple devices, the MDM profile appears in Settings under General > VPN and Device Management (or Profiles on older iOS versions). Open Settings, tap General, then scroll down and tap VPN and Device Management. You will see a list of profiles installed on your device — the MDM profile is usually labeled with your company name or "Mobile Device Management".
Tap the MDM profile to open it, then tap Remove or Delete Management. iOS will ask you to confirm — tap Remove again. You may be prompted to enter your device passcode. After removal, restart your iPhone or iPad by powering it off and back on. Check Settings again to confirm the profile is gone. If a re-enrollment prompt appears within a few hours, the management server is still trying to push it — contact your IT department and ask them to remove your device from their MDM system.
Remove MDM on Android devices
Android stores MDM configuration in Settings under Security and Privacy, though the exact path varies by manufacturer. Open Settings, search for "device admin" or "device administrators", and look for any apps listed there with management permissions. Common MDM apps include Microsoft Intune, MobileIron, AirWatch, or your company's custom management app.
Tap the app name, then tap Deactivate or Remove Admin Access. Android will warn you that removing admin access may affect the app's function — confirm the removal. After deactivating admin access, go to Settings > Apps and find the MDM app itself. Tap it, then tap Uninstall. If the Uninstall button is grayed out, the app is a system app that your company pre-installed — you can only disable it by going to Settings > Apps, finding the MDM app, and tapping Disable. Restart your device and check that no management notifications reappear.
Stop background MDM agents and services
Some MDM systems install a background service or agent that continues running even after you remove the main profile. On Windows computers, open Task Scheduler (search "Task Scheduler" in the Start menu) and look for any scheduled tasks with names containing your company name, "MDM", "management", or "enrollment". Right-click each one and select Delete. Then open Services (search "Services" in the Start menu), look for any service with a similar name, right-click it, and select Stop. Set the startup type to Disabled so it does not restart on reboot.
On Mac computers, open System Preferences > Profiles (or System Settings > General > Profiles on newer macOS versions) and delete any management profiles. Then open Activity Monitor, search for any process with your company name or "MDM" in it, select it, and click the X button to force quit. Restart your Mac and check Activity Monitor again to confirm the process does not reappear.
Contact your IT department to remove your device from their system
If your device is owned by your employer or enrolled through work, the MDM re-enrollment loop will continue until your IT department removes your device from their management console. Even if you delete every profile and agent from your device, the management server can push new enrollment commands as soon as your device connects to the internet.
Contact your IT department or help desk and tell them you want to unenroll your device from MDM. Provide them with your device name and serial number (found in Settings > About on most devices). Ask them to confirm that your device has been removed from their management system. After they confirm removal, restart your device and wait 24 hours — if no re-enrollment prompts appear, the loop is broken.
What to do if MDM keeps re-enrolling after you have removed it
If re-enrollment continues after you have deleted the profile, removed the agent, and confirmed removal with your IT department, the device may have a deeper management configuration that standard removal steps cannot reach. Check whether your device is still connected to a corporate network or VPN — some MDM systems use network-level controls that trigger re-enrollment whenever the device joins that network. Disconnect from the corporate network and restart your device.
If re-enrollment still occurs on a personal network, a factory reset is the most reliable way to remove all traces of MDM. Back up your data first (to cloud storage or a computer), then go to Settings > System > Reset Options (or similar, depending on your device) and choose Erase All Data or Factory Reset. This erases everything on the device and removes any hidden management configurations. After the reset, do not sign back into the same work account or connect to the corporate network, as this may trigger re-enrollment again.
Prevent MDM re-enrollment in the future
If you are using a personal device for work, consider keeping work and personal use separate by using a separate work phone or a work profile (available on Android through work profile containers). This way, if your company's MDM becomes too restrictive, you can delete the work profile without affecting your personal data and settings.
If you must use one device for both work and personal use, ask your IT department what their MDM policy covers before enrolling. Some companies allow you to unenroll at any time, while others require you to keep the device enrolled as a condition of employment. Knowing the policy upfront prevents surprises later. If you do decide to unenroll, do so cleanly by asking your IT department to remove your device from their system rather than deleting the profile yourself — this prevents the re-enrollment loop from starting.
Frequently Asked Questions
Can I remove MDM without contacting my company?
You can remove the MDM profile and agent from your device, but if your company still has your device in their management system, the server will push re-enrollment commands every time your device connects to the internet. Removing it cleanly requires your IT department to delete your device from their console first. If you remove it without their involvement, expect re-enrollment to continue.
Will removing MDM delete my files and photos?
Removing the MDM profile or agent does not delete your data. A factory reset will erase everything, but standard profile removal leaves your files intact. If your company has remote wipe enabled on your device, they may be able to wipe it remotely if they detect that MDM has been removed — contact your IT department to ask whether this is a risk before you remove the profile.
What if I do not know who manages my device?
Check Settings > About (or General > About on iPhone) and look for a Device Administrator, Management Account, or Company Portal app. The company name or app name will usually tell you who is managing it. If you are still unsure, contact your HR department or the person who gave you the device and ask them who set up the MDM.
Does factory reset may provide MDM will not come back?
A factory reset removes all MDM software from your device, but if you then sign back into a work email account or reconnect to a corporate network, your company may be able to re-enroll the device automatically. After a factory reset, avoid signing into work accounts or connecting to corporate networks unless you want MDM to be reinstalled.
Can my company re-enroll my device without my permission?
If your device is company-owned or you signed an agreement allowing remote management, yes — your company can push re-enrollment commands to your device remotely. If your device is personal and you did not agree to MDM, they cannot force it. Check your employment agreement or ask your IT department what their policy is on device management.