/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Does anyone know of a script that can be used in Kace for changing created local admin passwords on iMacs?

02/09/2017 947 views
I have a script that i used in Kace that changed the created company wide local admin password on all our PCs...However, we have some iMacs in our environment, need some help changing the passwords on those, thanks! 
Answer Summary:
1 Comment   [ + ] Show comment

Comments

  • Thanks everyone for the great information. Just out of curiosity, is there anyway to change the password without typing in the old one? Im asking because the admin password is different on all our macs. Thanks!

Answer Chosen by the Author

0
we use this command in a shell kscript - dscl . -passwd /Users/username OldPW NewPW

for example we found out depending on when and who set the mac up we had 2 different admin account names and passwords.  so we put all 4 variations in a script and the end user sees no errors for the lines that are n/a.  We run this a couple of times a week day so we catch all machines.

dscl . -passwd /Users/admin OldPW1 NewPW
dscl . -passwd /Users/admin OldPW2 NewPW
dscl . -passwd /Users/administrator OldPW2 NewPW
dscl . -passwd /Users/administrator OldPW2 NewPW



Answered 02/10/2017 by: SMal.tmcc
Red Belt

All Answers

0
Thanks everyone for the great information. Just out of curiosity, is there anyway to change the password without typing in the old one? Im asking because the admin password is different on all our macs. Thanks!
Answered 02/13/2017 by: rpsolis
Senior Yellow Belt

  • Question has been answered but thought I would share this if you don't already have it. I use this to find scripts that I can run in my KBOX.

    https://gallery.technet.microsoft.com/ScriptCenter/
0
This discussion is still relevant: http://www.itninja.com/question/mac-script-to-change-administrator-password

Make sure to test in your environment, especially with the keychain caveat mentioned in that post.
Answered 02/09/2017 by: JasonEgg
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