Skip to content

Instantly share code, notes, and snippets.

  • Save victorux/7831aaa7e645fca5650891cb318f9e4c to your computer and use it in GitHub Desktop.
Save victorux/7831aaa7e645fca5650891cb318f9e4c to your computer and use it in GitHub Desktop.
Disable Device Enrollment Program (DEP) notification on macOS BigSur

Disable Device Enrollment Program (DEP) notification on macOS BigSur

Requirements

  1. Restart in Recovery Mode

    Restart your Mac then hold down the Command & R keys together until you're in the Recovery Mode menu

  2. Click on Utilities then select: Startup Security Utility

  3. The 3-choices popup appears: select (No security) (no confirmation button to press)

  4. Restart again in Recovery Mode (Command+R)

  5. Open Utilities → Terminal and type

    csrutil disable

  6. Restart in Recovery Mode again and continue with Main Procedure

Main Procedure

  1. Open Utilities → Terminal and type

    mount

  2. A list of things will show up once you enter in (mount) in Terminal

    • Write down the disk associated with /Volumes/Macintosh HD (mine was /dev/disk2s5)
    • Note: it's not "/", and it's not /Volumes/Macintosh HD - Data
  3. Next, in Terminal, type

    umount /Volumes/Macintosh\ HD

  4. Then:

    mkdir /Volumes/Macintosh\ HD

  5. Then:

    mount -t apfs -rw /dev/disk2s5 /Volumes/Macintosh\ HD

  6. Then:

    cd /Volumes/Macintosh\ HD/System/Library/LaunchAgents

  7. Then:

    mkdir xtemp

  8. Then:

    mv com.apple.ManagedClientAgent.* xtemp/

  9. Then:

    mv com.apple.mdmclient.* xtemp/

  10. Then:

    cd ../LaunchDaemons

  11. Then:

    mkdir xtemp

  12. Then:

    mv com.apple.ManagedClient.* xtemp/

  13. Then:

    mv com.apple.mdmclient.* xtemp/

  14. Then, Turn off Signed System Volume SSV

    csrutil authenticated-root disable

  15. Lastly, Save the current disk status in the boot snapshot

    bless --folder /Volumes/Macintosh\ HD/System/Library/CoreServices --bootefi --create-snapshot

Now you can restart your Mac, DEP notification is disabled.

Verification

  1. After a normal boot, you can verify the DEP status in Terminal.

    profiles status -type enrollment

  2. Disable DEP Status successful.

    Enrolled via DEP: No
    MDM enrollment: No
    

Notes

  1. After each upgrade to the latest BigSur, apply this method again to disable DEP.

  2. Method has been tested and worked on following macOS BigSur version:

    • 11.3.1
    • 11.3
    • 11.2.3
    • 11.2.2
    • 11.2.1
    • 11.2
    • 11.1
    • 11.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment