Rover12421's Blog

The End.

开Win 2003 3389 Reg

开2003 3389

1
regedit /s c:\3389.reg

写入c:\3389.reg的bat文件

1
2
3
4
5
6
7
8
echo Windows Registry Editor Version 5.00 >c:\3389.reg
echo. >>c:\3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] >>c:\3389.reg
echo "fDenyTSConnections"=dword:00000000 >>c:\3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] >>c:\3389.reg
echo "PortNumber"=dword:00000d3d >>c:\3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] >>c:\3389.reg
echo "PortNumber"=dword:00000d3d >>c:\3389.reg

Comments