/build/static/layout/Breadcrumb_cap_w.png

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

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! 

1 Comment   [ + ] Show comment
  • 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! - rpsolis 7 years ago

Answers (3)

Answer Summary:
Posted by: rpsolis 7 years ago
Senior Yellow Belt
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!

Comments:
  • 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/ - nshah 7 years ago
Posted by: JasonEgg 7 years ago
Red Belt
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.
Posted by: SMal.tmcc 7 years ago
Red Belt
0

Top Answer

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



 
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