![]() ![]() You can change the RDP port number on a remote computer. Write-host "The number of the RDP port has been changed to $RDPPort " -ForegroundColor Magenta New-NetFirewallRule -DisplayName "NewRDPPort-UDP-In-$RDPPort" -Direction Inbound –LocalPort $RDPPort -Protocol UDP -Action Allow New-NetFirewallRule -DisplayName "NewRDPPort-TCP-In-$RDPPort" -Direction Inbound –LocalPort $RDPPort -Protocol TCP -Action Allow ![]() Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TCP\" -Name PortNumber -Value $RDPPort Write-host "Specify the number of your new RDP port: " -ForegroundColor Yellow -NoNewline $RDPPort = Read-Host Software Requirements for Virtual Printing Horizon View Client 2. Change RDP Listening Port Number with PowerShellĪ complete PowerShell script to change the RDP port number, create the firewall rule, and restart the Remote Desktop service might look like this: NOTE Horizon View Client for Mac OS X does not work with Microsoft Remote Desktop 8.0 and later releases. Create a new GPO that will deploy the PortNumber registry parameter with the new RDP port number to domain computers. If you want to change the RDP port number on domain computers, you can use the Group Policy features. If you change the default RDP listening port number, you may have some troubles with using Remote Assistance, shadow RDP connections in Windows 10, as well as RDS shadowing on Windows Server. To connect to this Windows host via Remote Desktop, you have to specify the new RDP connection port in your mstsc.exe client using the colon as follows: RDPComputerName:1350 or by IP address: 192.168.1.10:1350 or from the command prompt: mstsc.exe /v 192.168.1.10:1350.Reboot your computer or restart your Remote Desktop service with this command: net stop termservice
0 Comments
Leave a Reply. |