Win10修改远程桌面3389端口
在PowerShell中粘貼下列內容并執行(提前把3389改成你想要的端口號)。(內容來源于微軟官網,原文鏈接:https://learn.microsoft.com/zh-cn/windows-server/remote/remote-desktop-services/clients/change-listening-port)
$portvalue = 3389
Set-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp’ -name “PortNumber” -Value $portvalue
New-NetFirewallRule -DisplayName ‘RDPPORTLatest-TCP-In’ -Profile ‘Public’ -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue
New-NetFirewallRule -DisplayName ‘RDPPORTLatest-UDP-In’ -Profile ‘Public’ -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue
總結
以上是生活随笔為你收集整理的Win10修改远程桌面3389端口的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c++之文件查找
- 下一篇: Greenplum学习实践-【安装部署】