Skip to content

Instantly share code, notes, and snippets.

@jmarhee
Created July 30, 2021 01:16
Show Gist options
  • Save jmarhee/4ddd6dcb372842812e82e08697f26d13 to your computer and use it in GitHub Desktop.
Save jmarhee/4ddd6dcb372842812e82e08697f26d13 to your computer and use it in GitHub Desktop.
When Remote Desktop'd to a Mac, after switching Remote Management to only your user, you will be disconnected. Run this script to restore RDP access to your account.
#!/bin/bash
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users $1 -privs -all -restart -agent -menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment