Go to https://skipmdm.com
Run the below in recovery mode
You can verify the contents with curl https://raw.githubusercontent.com/skipmdm-phoenixbot/skipmdm.com/main/Autobypass-mdm.sh | cat
For my Ventura Mac , I have to use Disk Tool to Restore a copy of a old OS onto the Computer ( Monterary )
Once I use the Online recovery of Monterary , it let me go through the Setup Wizard without Internet then I could run the Bypass and restrict the MDM via Host File
sudo -i
echo "0.0.0.0 iprofiles.apple.com" >> /etc/hosts
echo "0.0.0.0 mdmenrollment.apple.com" >> /etc/hosts
echo "0.0.0.0 deviceenrollment.apple.com" >> /etc/hosts
echo "0.0.0.0 gdmf.apple.com" >> /etc/hosts
echo "0.0.0.0 acmdm.apple.com" >> /etc/hosts
echo "0.0.0.0 albert.apple.com" >> /etc/hosts
The below disables the prompt however will not let you create a user during setup
Restart again in Recovery Mode (Command+R)
Click on Utilities (top menu bar) then select Terminal
type in: mount then press enter/return
A list of things will show up once you enter in (mount) in Terminal Write down the disk associated with /Volumes/Macintosh HD (mine was /dev/disk2s5) Note: it’s not /, and it’s not /Volumes/Macintosh HD – Data
Next, in Terminal, write: umount /Volumes/Macintosh\ HD
then: mkdir /Volumes/Macintosh\ HD
then: mount -t apfs -rw /dev/disk2s5 /Volumes/Macintosh\ HD
then: cd /Volumes/Macintosh\ HD/System/Library/LaunchAgents
then: mkdir xtemp
then: mv com.apple.ManagedClientAgent.* xtemp/
then: mv com.apple.mdmclient.* xtemp/
then: cd ../LaunchDaemons
then: mkdir xtemp
then: mv com.apple.ManagedClient.* xtemp/
then: mv com.apple.mdmclient.* xtemp/
then: csrutil authenticated-root disable (this will Turn off Signed System Volume SSV)
then lastly: bless –folder /Volumes/Macintosh\ HD/System/Library/CoreServices –bootefi –create-snapshot? (this will Save the current disk status in the boot snapshot)
Now you can restart your Mac, DEP notification is disabled.”