Skip to content

Instantly share code, notes, and snippets.

@jorgedison
Created April 6, 2017 18:49
Show Gist options
  • Save jorgedison/ae8aab20f6d1ad0178b9e9c66c6a7035 to your computer and use it in GitHub Desktop.
Save jorgedison/ae8aab20f6d1ad0178b9e9c66c6a7035 to your computer and use it in GitHub Desktop.
1. Start | Run | Gpedit.msc if editing the local policy or chose the appropriate policy and edit it.
2. Computer Configuration | Windows Settings | Security Settings | Local Policies | User Rights Assignment.
3. Find and double click "Deny logon through Remote Desktop Services"
4. Add the user and / or the group that you would like to dny access.
5. Click ok.
6. Either run gpupdate /force /target:computer or wait for the next policy refresh for this setting to take effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment