Categories
Powershell Scripts

Change Windows server RDP port via Powershell/CLI command

Open Powershell as Admin and run below command, change RDP port to 3400 or your choice in given command

Set-ItemProperty -Path "HKLM:System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name PortNumber -Value 3400

 

Leave a Reply