-
-
Save AhmedSakrr/7c1702552f04864abc855d5ced0a2ed3 to your computer and use it in GitHub Desktop.
Enable Windows Remote Desktop Connection with PowerShell
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
# 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