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
// >> 1- you will have to install ventura cleanly, using a portable pendrive.
2-Make sure to turn off the internet in the last phase so that it works.
3-Only after that will you be able to do it, I have a MacBook Pro M1 and it worked this way, I managed to do it with Sonoma installed, but I had to be very quick, saving it in Notepad to be able to copy in seconds before the pop that takes over the entire screen.
Mine is working normally, but I haven't updated it. Just thank the forum here, it was very useful.
I open a non-admin partition so that if it happens again I can access it, I advise you to do this.
Now I didn't know about this skip.mdm, I saved everything so if it happens again I can resolve it. Big hug from Brazil!