Skip to content

Instantly share code, notes, and snippets.

@lucascantor
Last active February 10, 2018 18:29
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 lucascantor/45440c528d31b52729be35f014d6e7c5 to your computer and use it in GitHub Desktop.
Save lucascantor/45440c528d31b52729be35f014d6e7c5 to your computer and use it in GitHub Desktop.
Apple Remote Desktop can be enabled and configured via the command line
# e.g., Grant all remote control privileges to user johnsmith:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users johnsmith -privs -all -restart -agent -menu
# e.g., Revoke all remote control privileges for all users, to clear unwanted settings:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -access -off
# e.g., Grant ability to request screen sharing only, with explicit confirmation from the current user:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -specifiedUsers -clientopts -setreqperm -reqperm yes -setvnclegacy -vnclegacy no -setmenuextra -menuextra no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment