Forked from kmondesir/Enable Remote Desktop with PowerShell
Created
February 24, 2021 13:06
-
-
Save AhmedSakrr/598130b6777630928363be1ecac81c19 to your computer and use it in GitHub Desktop.
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
# Make sure to run the shell with administrator credentials | |
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0 | |
Enable-NetFirewallRule -DisplayGroup "Remote Desktop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment