
How to change RDP Port? Changing RDP port on windows server via PowerShell.
Today, I want to share about changing RDP Port via PowerShell. Because it can be painful when you use Regedit. It’s hard to remember how to do it. Always, I needed to research again.
I did prepare a small PowerShell script. You can download this to your Windows Server and double click to the file or you can write the commands on your PowerShell screen.
I did choose a random port like 3535. You can change it as you wish.
It may affect after rebooting your server or restarting remote desktop services. Just be sure which port you used.