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:
Please log in to answer
Posted by:
rpsolis
7 years ago
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
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
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.
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