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
Just got a new M1 Macbook Pro 16". It has MDM on it. So I formatted the disk, and reinstalled OSX Monterrey from a USB drive. I have put all the suspects in my DNS server to return 0.0.0.0 when looked up, so this macbook should be getting an IP of 0.0.0.0 for hosts recommneded in this thread: mdmenrollment, deviceenrollment, etc.
But I am still getting the pop up that my company can manage this device remotely, and theres no way for me to not accept it. NOt sure what I am missing here?