/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Script to convert user to admin on MacOS

10/05/2020 163 views

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

Comments


All Answers

1

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


Answered 10/05/2020 by: chucksteel
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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