Files
DetectionLab/Packer/scripts/enable-rdp.bat
2017-12-11 08:49:25 -08:00

3 lines
227 B
Batchfile
Executable File

netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f