Change Windows RDP Remote Desktop Port with CMD and PowerShell

Опубликовано: 22 Март 2026
на канале: IT Ninja Warrior
55
2

How to Change Windows RDP Remote Desktop Port with CMD and PowerShell
Please subscribe to my channel ⬆️ and like this video ↗️
.
Registry location
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
-Port number
.
Commands Used:
netstat -ano
CMD
reg add "HKLM\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v PortNumber /t REG_DWORD /d 1027 /f
PowerShell
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name "PortNumber" -Value 3389
.
Whether you are a novice home user or experienced technician if you found this video helpful feel free to bookmark for future use or save the link in your knowledge base, wiki, confluence or ticket. Lets Ninja fix IT! 💪
.
Note: These guides are not intended to guarantee resolution on any issues, warnings, or errors you are experiencing with your infrastructure. A strong technical background is recommended in, but not limited to, server administration, Window OS, networking, Office 365, cmd line, powershell and general MSP best practices. Always export the current configuration, confirm backup solutions are up to date, make a backup\snapshot\checkpoint before making any changes. Do not make any irreversible changes or deletion events with out performing due diligence.
Hashtags
--------------
#windows #RDP #remotedesktop #port #3389 #portchange #windows10 #windows11 #registry #mstsc #reels