Skip to content

Instantly share code, notes, and snippets.

@elreydetoda
Created November 4, 2020 13:07
Show Gist options
  • Save elreydetoda/0a022db3ddbfc3398b7436bba695692e to your computer and use it in GitHub Desktop.
Save elreydetoda/0a022db3ddbfc3398b7436bba695692e to your computer and use it in GitHub Desktop.
enabling rdp & allowing through firewall powershell script
# thanks to https://vmarena.com/how-to-enable-remote-desktop-rdp-remotely-using-powershell/
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