Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save leveled/4db50bf99cc5d7f463b3366ed858edec to your computer and use it in GitHub Desktop.
Save leveled/4db50bf99cc5d7f463b3366ed858edec to your computer and use it in GitHub Desktop.
Enable Remote Desktop on MacOS
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
#Newer versions of MacOS
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -allUsers -privs -all -clientopts -setmenuextra -menuextra yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment