Lazy enable Remote Desktop Service on Windows
The script needs to be run as administrator in a Powershell or a cmd session.
Tested on Windows versions >= 6.0
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 0 /f netsh firewall set service type = remotedesktop mode = enable
That's all, folks!
Tweet