Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Created August 7, 2015 08:12
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save jhorsman/356b344b09573cddd311 to your computer and use it in GitHub Desktop.
Save jhorsman/356b344b09573cddd311 to your computer and use it in GitHub Desktop.
Enable Windows Remote Desktop Connection with PowerShell
# run as administrator
# reboot afterwards
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment