Created
August 27, 2015 23:53
-
-
Save clburlison/03ea40f5d377b42fe025 to your computer and use it in GitHub Desktop.
kickstart_ard_example.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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