Script to convert user to admin on MacOS
I'm trying to create a script that will add a user into the admin, It runs and complete but it doesn't work. when I run it locally on the machine the script work but when i run it from KACE SMA it dosen't.
it's an offline Kscript (I also tried online Kscript, but same result, runs and 100% complete but the user on the machine is still standerd)
This is the script dscl . -append /groups/admin GroupMembership user
Any help/suggestion is much appreciated.