1. 运行regedit
2. 展开 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\ 修改 portnumber (此处可用十进制修改)
3. 展开 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\ 修改 portnumber (此处必须用十六进制修改,否则会失败,巨坑)