注册表开启3389端口方法

echo Windows Registry Editor Version 5.00>>c:\RECYCLER\3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]>>c:\RECYCLER3389.reg
echo "fDenyTSConnections"=dword:00000000>>c:\RECYCLER\3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp]>>c:\RECYCLER\3389.reg
echo "PortNumber"=dword:00000d3d>>c:\RECYCLER\3389.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]>>c:\RECYCLER\3389.reg
echo "PortNumber"=dword:00000d3d>>c:\RECYCLER\3389.reg
regedit /s c:\RECYCLER\3389.reg

你可能感兴趣的:(注册表开启3389端口方法)