Thursday, January 18, 2024

Test if RDP (Remote Desktop Protocol) Port is Open using PowerShell

Using PowerShell Test-NetConnection to Test RDP (Remote Desktop Protocol) Port 3389


Open a PowerShell command line by entering into the windows search bar PowerShell and select PowerShell from the items list.  or if your more familiar with access the normal command line, open a command prompt and once opened, type PowerShell and hit enter. You will see your prompt change to PS C:\> 




 Within either the PowerShell prompt or PowerShell in a command window, enter the following command. Change the IP address or computer name to match the system you are testing for RDP (Remote Desktop Protocol) port 3389.  

PS C:\> Test-NetConnection ip-or-computername -Port 3389 

Hit enter, you'll see a green bar across the top for a moment stating "waiting for response".  

The result will look similar to the following. 


If successful, TcpTestSucceeded : True will be displayed on the bottom line of the output results. 

This method can be used to test for other open ports you may be inclined to check if connectivity over the network is available. 
















Share/Save/Bookmark