/build/static/layout/Breadcrumb_cap_w.png

Script to convert user to admin on MacOS

Hi,

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.


0 Comments   [ + ] Show comments

Answers (1)

Posted by: chucksteel 4 years ago
Red Belt
0

Here's the command I use with an online shell script:

dseditgroup -o edit -a username -t user admin

where username is the username being added to the group.

e.g.

dseditgroup -o edit -a chucksteel -t user admin


 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ