Skip to content

Instantly share code, notes, and snippets.

@clburlison
Created August 27, 2015 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clburlison/03ea40f5d377b42fe025 to your computer and use it in GitHub Desktop.
Save clburlison/03ea40f5d377b42fe025 to your computer and use it in GitHub Desktop.
kickstart_ard_example.sh
#!/bin/sh
# More details can be found in this post http://www.amsys.co.uk/2015/01/creating-first-boot-script/
ARD="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart"
# This turns the setting on
$ARD -configure -activate
$ARD -configure -access -on
# This remote settings for only authorized users
$ARD -configure -allowAccessFor -specifiedUsers
# replace localadmin with your admin account
$ARD -configure -access -on -users localadmin -privs -all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment