Created
July 30, 2021 01:16
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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