csrutil disable
Restart computer
In the terminal, type
sudo open /Applications/TextEdit.app /System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist
change
<key>com.apple.ManagedClient.enroll</key>
<true/>
to
<key>com.apple.ManagedClient.enroll</key>
<false/>
So that the changes take effect
Hi! I've been struggling with MDM quite a lot and found the easiest, but a little long solution to the problem, but you won't get mdm blocking and profile upload notifications. I have described as much detail as possible for different cases, so find your own and follow the instructions.
I'll tell you the pros and cons at the very end, and now let's move on to the beginning:
Preparatory Stages:
If you are on macOS Ventura or Monterey and you have no problems with MDM, then download this utility https://checkm8.info/bypass-mac-mdm-lock and make a Bypass (this is a precautionary measure, without doing this, I cannot guarantee you a successful system update), if you have already done this before, then immediately proceed to the main stages.
If you are on macOS Ventura or Monterey or Sonoma and you did not turn off the Internet during installation, then the MacBook will download the corporate profile and be blocked. In this case, there are 2 possible scenarios ->
Scenario 1: If your data is not on the computer, then feel free to format the disk and install Monterey/Ventura without the Internet, as soon as you have created a user and configured a MacBook, you can connect to the Internet and bypass MDM using this utility https://checkm8.info/bypass-mac-mdm-lock once you have bypassed MDM with this utility, you can proceed to the main stages.
Scenario 2: If you had Monterey/Ventura and received a lock after upgrading to Sonoma, then the data can still be saved if there was still +-100gb of free space on the disk or if you have an external hard drive
If you still have disk space and you need to restore data from a system blocked by your corporate profile, then follow these steps:
Turn off your MacBook
Reboot into recovery mode by pressing the touch id button
Go to Settings
Disk utility
Divide your disk into 2 independent containers, it is important to note that we do not add a VOLUME for the disk, namely a CONTAINER
Install Monterey/Ventura without internet in a new, empty container and bypass MDM using this utility https://checkm8.info/bypass-mac-mdm-lock
Now in the Finder, find your other user from another container and transfer all the files of interest from the old disk container to the new one
You can proceed to the main stages
If you have an external hard drive and you need to recover data from a locked corporate system profile, then follow these steps:
Install Monterey/Ventura without internet and bypass MDM using this utility https://checkm8.info/bypass-mac-mdm-lock
Now find your other user in the Finder and transfer all the files of interest from the internal drive to the external hard drive
You can proceed to the main stages
The main steps:
So, in order to upgrade to Sonoma without problems, we need an external SSD or HDD (we will save our backup copy of all data via time machine to it)
Using the disk utility, format the external hard drive in APFS and in the settings in the main section select Time Machine, and in it select your external hard drive and then create a backup copy of all data
As soon as the backup is created (you don't have to worry about data security, time machine saves literally everything you can), turn off your MacBook
Enter recovery mode by pressing the touch id button.
Disk utility
Format your internal drive
(Pre-create a bootable USB flash drive with macOS Sonoma) Start installing Sonoma without the Internet, configure your MacBook until you are prompted to transfer data from a time machine backup, select this item
Restore all data from the backup and then complete the installation
That's it, you don't need to do anything else, successful bypass!
The advantages of my method:
Personally tested by me on a macbook pro 13" m1 and has been tested without any problems for a week now
An easy way to bypass the regular macos methods
Do you need more advantages besides reliability and simplicity? :)
Minuses:
Quite a long time