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 14.0 SDK: https://github.com/darlinghq/LibrarySymbols/blob/main/symbols/macOS/14.0%20(23A344)/sharedcache/cryptexes/library/dyld_shared_cache_x86_64.dir/System/Library/PrivateFrameworks/ConfigurationProfiles.framework/Versions/A/ConfigurationProfiles.symboldir/nm.txt
mdm_check: https://github.com/mani2care/swiftDialog-scripts/blob/main/umad-swiftdialog/payload/Library/CPE/bin/mdm_check