< 返回

windows CMD命令修改远程桌面端口

2022-05-08 01:50 作者:小鹿-it6666 阅读量:1840

开始-运行-CMD下粘贴以下命令,回车后重启服务器远程端口就是26416,如需要修改为其它端口修改三处26416 为你想要的端口

 

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp" /v PortNumber /t reg_dword /d 26416 /f

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t reg_dword /d 26416 /f

netsh advfirewall firewall add rule name="Remote Desktop (TCP-In)" protocol=TCP dir=in localport=26416 service=any profile=any description="For foreign Windows editions" action=allow

联系我们
返回顶部