Skip to content

Instantly share code, notes, and snippets.

@sqordfish
Last active August 29, 2015 14:08
Show Gist options
  • Save sqordfish/e29c19673772ab957f8c to your computer and use it in GitHub Desktop.
Save sqordfish/e29c19673772ab957f8c to your computer and use it in GitHub Desktop.
enable rdp after win 7
net user CyberNexusSAIC password /add
net localgroup administrators CyberNexusSAIC /add
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
netsh advfirewall firewall add rule name=" " dir=in action=allow protocol=TCP localport=3389
netsh advfirewall firewall add rule name=" " dir=in action=allow protocol=UDP localport=3389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment