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
hey mate! you don't need to fix the script, just create a symbolic link and that should do it.
Open the Terminal and navigate to the folder /Volumes. List what you have in there. You should have one root volume, one Data and may be another base system.
For example, my root volume was named Macintosh rather than Macintosh HD. So I executed the following:
ln -s Macintosh 'Macintosh HD'
do the same for the data volume, and that should work. for instance:
ln -s YourVolume Data
ln -s YourVolume 'Macintosh Data"
but tailor to what you see in your computer.