Rui Qiu's Tech Blog
← Back to all posts

July 6, 2015

Mac Deployment One Click Script

We don’t have Casper in our environment, so everything is still quite manual when deploying a mac. One day I was so tired of endless click to join a mac to AD. then I start working on mac deployment. The main script for macs to join AD is from Vaughn Miller, https://github.com/vmiller/vmiller_scripts/tree/master/Interactive_AD_Bind For my script, you can download from here: https://github.com/ruiqiu/mac_deployment What does this one click script do:

  1. Run as root (if not, will prompt you to do so) (Q);
  2. Ask you for computer name, username, and password to join AD (john.sh);
  3. Enable mobile account (john.sh);
  4. Add domain groups to local admin group (john1.sh);
  5. Install Mac SCCM client (Q);
  6. Install ESET Anti-virus software  (Q);
  7. Ask for reboot (Q)

Some Q & A