Reply To: Change admin password

#9588
Deborah TimothyDeborah Timothy
Moderator

Hello Amanda,

Thanks for reaching out to us.

Hexnode lets you run remote scripts on macOS 10.11+. You can easily change the password of the admin account by creating a script that has the command:

sysadminctl -adminUser $ADMINACCOUNTNAME -adminPassword $CURRENTPASSWORD -resetPasswordFor $ADMINACCOUNTNAME -newPassword $NEWPASSWORD.

The arguments required are indicated with $ symbol. This command requires 4 arguments. Run this script on all your devices using Hexnode. From the Manage tab, select all the required devices and click Actions > Execute Custom Script. Upload the script file and give the necessary details. Finally, click Execute to confirm your action. Read our help doc on  executing scripts to know more.

The action Clear Password can only be performed on iOS and Android devices. It is used to erase the device password.

Cheers!!
Deborah Timothy
Hexnode UEM