s
收藏
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name PortNumber -Value 25701
New-NetFirewallRule -DisplayName 'RDP TCP 25701' -Direction Inbound -Protocol TCP -LocalPort 25701 -Action Allow
New-NetFirewallRule -DisplayName 'RDP UDP 25701' -Direction Inbound -Protocol UDP -LocalPort 25701 -Action Allow

Restart-Computer

Mr.Gu's Studio

会员登录