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
Oh man!
I’ve had to dig into previous responses, thanks to the community and thanks to God, I’ve got it fixed!
First had issues, tried renaming in the script but unfortunately that was not it.
I eventually found out where the OS was installed wasn’t mounted!
it’s working fine now.