Previous
Previous
Exchange: Fix mailbox migration fail | “Mailbox Exists On-Premises”
Next
Next
Test-NetConnection -Port 3389 returns TcpTestSucceeded: False.netstat -an | findstr 3389.Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Select DisplayName, Enabled, Direction
(Get-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server").fDenyTSConnections
The RDP port was set incorrectly in the registry, causing no listener on 3389.
Get-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name PortNumber
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name PortNumber -Value 3389
Restart-Service TermService -Force
After running this, the host should show LISTENING on port 3389.
netstat -an | findstr 3389
Get-Service -Name TermService
Test-NetConnection -ComputerName <PCName> -Port 3389
TcpTestSucceeded: True
UserAuthentication = 1).