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
DO NOT UPGRADE IT TO SONAMA .This commands will works perfect with the Ventura but won't work with the Sonoma .Do not believe anyone if someone will tell you this will work with the Sonoma which is IT WILL NOT .You will brick your Mac if you use Sonama