Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
Last active November 29, 2022 18:11
Show Gist options
  • Select an option

  • Save talkingmoose/54212732790fe150de3825c249c8eaa1 to your computer and use it in GitHub Desktop.

Select an option

Save talkingmoose/54212732790fe150de3825c249c8eaa1 to your computer and use it in GitHub Desktop.
Commands from Apple's support page to enable all Remote Management options for a single user. https://support.apple.com/en-us/HT201710
#!/bin/sh
# start Remote Management
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate
# enable access for specified users
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -specifiedUsers
# specify users who can remotely access a machine and enable all privileges
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users teacher,student -access -on -privs -All
# one-liner
# turn on remote access, allow access for all users, allow remote users to request access and enable menu item
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -allUsers -clientopts -setreqperm -reqperm yes -setmenuextra -menuextra yes
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment