Skip to content

assafdori/bypass-mdm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bypass-MDM for MacOS 💻

mdm-screen

Prerequisites ⚠️

  • It is advised to erase the hard-drive prior to starting.
  • It is advised to re-install MacOS using an external flash drive.
  • Device language needs to be set to English, it can be changed afterwards.

Follow steps below to bypass MDM setup during a fresh installation of MacOS

Upon arriving to the setup stage of forced MDM enrollement:

  1. Long press Power button to forcefully shut down your Mac.

  2. Hold the power button to start your Mac & boot into recovery mode.

a. Apple-based Mac: Hold Power button.
b. Intel-based Mac: Hold CMD + R during boot.

  1. Connect to WiFi to activate your Mac.

  2. Enter Recovery Mode & Open Safari.

  3. Navigate to https://www.github.com/assafdori/bypass-mdm

  4. Copy the script below:

curl https://raw.githubusercontent.com/assafdori/bypass-mdm/main/bypass-mdm.sh -o bypass-mdm.sh && chmod +x ./bypass-mdm.sh && ./bypass-mdm.sh
  1. Launch Terminal (Utilities > Terminal).

  2. Paste (CMD + V) and Run the script (ENTER).

  3. Input 1 for Autobypass.

  4. Press Enter to leave the default username 'Apple'.

  5. Press Enter to leave the default password '1234'.

  6. Wait for the script to finish & Reboot your Mac.

  7. Sign in with user (Apple) & password (1234)

  8. Skip all setup (Apple ID, Siri, Touch ID, Location Services)

  9. Once on the desktop navigate to System Settings > Users and Groups, and create your real Admin account.

  10. Log out of the Apple profile, and sign in into your real profile.

  11. Feel free set up properly now (Apple ID, Siri, Touch ID, Location Services).

  12. Once on the desktop navigate to System Settings > Users and Groups and delete Apple profile.

  13. Congratulations, you're MDM free! 💫

Although it's virtually impossible to catch that you've removed the MDM (because it wasn't even configured), be aware that the serial number of the laptop will still be shown in the inventory system of your company. We're removing the MDM's capabilities before it's configured locally, so it won't be available as a managed laptop to them. Use with caution. Probably a good idea to have a valid excuse as well.

About

Bypass MDM Setup for MacOS, up to Sequoia (24A335).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages