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
For me it is not so much the MDM screen that is the problem, I bypassed that without Wifi and installed MacOS off internet and that's worked. It's just the DEP notification that pops up every now and again that I cannot get rid of. Tried the 0.0.0.0 in host but I wonder if I need to actually type in my local host and not just 0.0.0.0
The textedit.app hack doesn't work for me, not only the files are in different locations for me, but my terminal keeps prompting that textedit.app does not exist 🙄