Skip to content

Instantly share code, notes, and snippets.

@michaelkc
Last active June 29, 2016 13:38
Show Gist options
  • Save michaelkc/aa4d9409cb41dcd79ab7 to your computer and use it in GitHub Desktop.
Save michaelkc/aa4d9409cb41dcd79ab7 to your computer and use it in GitHub Desktop.
EnableRemoteDesktop.ps1
# wget tinyurl.com/enablerdp -outfile .\rdp.ps1
# .\rdp.ps1
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