怎么在dos命令上开启3389

怎么在dos命令上开启3389
2024-12-14 00:57:15
推荐回答(1个)
回答1:

echo Windows Registry Editor Version 5.00>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
regedit /s >C:\3389.reg

完成后,重新启动系统即开启了3389端口