Using PowerShell - Modify a Registry Key Value
Create a Registry Key Value
Set Registry Values With PowerShell
Get-ItemProperty –Path “HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp”
Set-ItemProperty –Path “HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp” –Name PortNumber –Value 5000
See PortNumber : 3380 (default)
Change Remote Desktop RDP Port to 5000
Ещё видео!