Category filter

Re-enrolling Macs using Automated device enrollment after device setup

Automated Device Enrollment (ADE), also known as Apple DEP, streamlines initial device setup by automating enrollment into an MDM solution. By eliminating manual setup and enabling zero-touch deployment, ADE enhances efficiency, reduces deployment time, and ensures consistent device configurations across the organization.

Although, certain devices may encounter enrollment failure during the setup of Automated Device Enrollment (ADE) or due to an unforeseen issue on the device after enrollment. Additionally, there might be instances where a DEP device is mistakenly enrolled in UEM using Manual Profile enrollment, resulting in the unavailability of DEP functionalities. Typically, resolving these issues requires wiping the device and re-enrolling it to ensure successful device enrollment and configuration. However, by utilizing a single-line command provided here, you can effortlessly re-enroll Macs by renewing the DEP configuration profiles.


  • Make sure that the device is bought directly from Apple or an authorized dealer after 1 March 2011 and is running macOS 10.13 or later.
    • The device must be logged in to a local account with administrative privileges.
    • The device must be assigned to a Hexnode MDM server in Apple Business Manager or Apple School Manager.
    • The device must not have a conflicting management profile.
    • The device must have Find My disabled or be signed out of iCloud.
  • A subscription to Pro, Enterprise, Ultimate or Ultra pricing plans of Hexnode.

After assigning the device to the Hexnode MDM server in Apple Business Manager/Apple School Manager, follow the steps below:

  1. If management profile from one MDM server already exists, you must delete that profile before attempting profile installation from another MDM server. Additionally, ensure no existing configuration profiles are present on the Mac before running the command to prevent further enrollment failures.
  2. Open the Terminal app.
    • On macOS 10.13.5 and later, run either of the following commands.

      sudo profiles renew -type enrollment
      sudo profiles -N

    • On macOS 10.13.4 and below, run the following command.

      sudo /usr/libexec/mdmclient dep nag

  3. Enter the password associated with the logged-in local account.
  4. The Mac will show a banner notification in the upper-right corner, prompting you to enroll the device into Hexnode UEM. To proceed, click on Details within the banner.
  5. Now, as System Preferences opens, a prompt will appear, requesting your confirmation for the enrollment. Click on Allow and the Mac will be successfully enrolled into the Hexnode UEM.
  6. System prompt to allow device enrollment

    Once the enrollment process is completed, Hexnode MDM enrollment profile cannot be removed since the device was enrolled through Automated Device Enrollment. The profile will remain intact on the device for management and configuration purposes.

  • Enrolling Devices
  • Managing Mac Devices