修改遠端桌面RDP Port
「以系統管理員身份執行」1.改Port
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TCP" /v PortNumber /t REG_DWORD /d 2222 /f
2.加防火牆Rule(Windows內建)
netsh advfirewall firewall add rule name="RDP TCP-IN 2222" dir=in action=allow protocol=TCP localport=2222
3.重啟RDP服務
net /y stop TermService && net start TermService
Reference: https://techexpert.tips/windows/windows-change-rdp-port/
頁:
[1]