【要求】
1、修改默认端口。
2、不用关闭防火墙。
【步骤】
1、用PowerShell查看:
<code>(Get-ItemProperty -Path "hklm:SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp").PortNumber</code>
<code>(Get-ItemProperty -Path "hklm:SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TCP").PortNumber</code>
2、在注册表中修改端口值:
<code>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp] PortNumber </code>
<code>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp] PortNumber</code>
3、控制面板\系统和安全\Windows 防火墙\允许的程序 远程桌面
4、开始-管理工具-高级安全Windows防火墙-入站规则。单击右键,选择新建规则:TCP-特定本地端口……
【注意】
1、如果无法使用剪贴板,可以重启远程服务器上rdpclip.exe。
2、可能需要重启计算机才能使端口更改生效。
参考:
本文转自walker snapshot博客51CTO博客,原文链接http://blog.51cto.com/walkerqt/1680392如需转载请自行联系原作者
RQSLT