Skip to content

Instantly share code, notes, and snippets.

@JDHatman
Created October 8, 2018 01:46
Show Gist options
  • Save JDHatman/6ddc26dbf585512bed455badcfef08df to your computer and use it in GitHub Desktop.
Save JDHatman/6ddc26dbf585512bed455badcfef08df to your computer and use it in GitHub Desktop.
Sysadminctl admin account
#!/bin/bash
# Create the Account
sysadminctl -addUser secretadmin -fullName SecretAdministrator -UID 510 -password secretpassword -admin -secureTokenOn -adminUser existingadminuser -adminPassword existingadminpassword
exit 0
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "postinstall" 7L, 199C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment