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
macOS 13重启后会恢复mdm profile,我自己编写了一个步骤,有需要的可以看下。
https://github.com/luckydzp/skip-mdm/blob/main/README.md