Skip to content

Instantly share code, notes, and snippets.

@kmondesir
Created April 24, 2020 12:55
Show Gist options
  • Save kmondesir/486bf2bc676d2eb179d305457ab5b9aa to your computer and use it in GitHub Desktop.
Save kmondesir/486bf2bc676d2eb179d305457ab5b9aa to your computer and use it in GitHub Desktop.
# Run shell with admin credentials
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1
Disable-NetFirewallRule -DisplayGroup "Remote Desktop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment