-
Notifications
You must be signed in to change notification settings - Fork 1
Apple Remote Desktop Client or Remote Management
scriptingosx edited this page Aug 26, 2015
·
1 revision
Access for the Apple Remote Desktop application and Screen Sharing is provided by the ARDAgent process. The settings for access can be controlled in System Preferences > Sharing > Remote Management. The interface to change these settings in script or from the command line is kickstart
#!/bin/sh
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki export PATH
# use kickstart to enable full Remote Desktop access
# for more info, see: http://support.apple.com/kb/HT2370
kickstart="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart"
#enable ARD access
$kickstart -configure -access -on -users local_admin,ard_user -privs -all
$kickstart -configure -allowAccessFor -specifiedUsers
$kickstart -activateNote: in this we are enabling access for two users
local_adminandard_userand giving them all access privileges.