Add admin account remotely So I need to add an admin account to multiple macs remotely. All of these macs already have an admin account (so we want to add an additional admin account) and they are bound to AD (worth mentioning just in case that makes a difference).

My question is, how can I add an extra admin account remotely? Anyone have a script? Maybe to do it with Apple Remote Desktop? SSH into these computers(since we already have an admin account) and just try to add the extra account that way?

What do you guys suggest? Thanks!
You are looking for the dscl command.  You can do it through ARD unix command to multiple machines at once, or send via ssh per machine. There's lots of discussion and great information here - What steps are needed to create a new user from the command line?

To summarize those answers, here's a quick admin user addition.

dscl . create /Users/corybohon

dscl . create /Users/corybohon UserShell /bin/bash

dscl . create /Users/corybohon RealName "Cory Bohon"

dscl . create /Users/corybohon UniqueID 503

dscl . create /Users/corybohon PrimaryGroupID 1000

dscl . create /Users/corybohon NFSHomeDirectory /Local/Users/corybohon

dscl . passwd /Users/corybohon PASSWORD

dscl . append /Groups/admin GroupMembership corybohon


A logout or restart will be needed for the user to show as admin in the System Preferences.

On a side note, I am not sure if this still works with Yosemite, but MagerVelp has a app called "CreateUserPkg" that can be used to deploy users.  CreateUserPkg, I use it with our MDM solution to push users as a pkg.

Terminal 101 full guide from above.