Some content on this site is available only to logged-in subscribers. Contact Us for information on becoming a subscriber.

InSource.Solutions | InSource Training | InSource Client Portal
InSource Solutions Logo
Log In Sign Up
InSource.Solutions InSource Training InSource Client Portal Log In Sign Up
  • Home
  • Supporting Technologies (i.e. Windows / SQL Server / VMWare / etc.)
  • Supporting Technologies Tech Notes

How to check for Open Ports using Windows Powershell

Last updated: February 27th, 2025

Description

  • Author: Michael Viteri
  • Published: February 27th, 2025

Details:

Description

  • Author: Mike Viteri
  • Published: 3/7/2022
  • Applies to: Windows Server

Details

In the past PortQry was used to check for open ports.

Now using Windows Powershell you can check ports with the build in software instead of third party software.

To test a Port open Windows Powershell by clicking on the start menu and typing "Power"

The PowerShell will open

Type the following command to see if the Remote Desktop port is open on your local computer

Test-NetConnection -Port 3389 -Computer localhost

If you check "TcpTestSucceeded" it says false. It failed as Remote Desktop is not turned on

If the port is changed to 80 "TcpTestSucceeded" is True as port 80 is open

If you want to test a remote PC change localhost to the remote IP Address to test

open ports windows powershell
Give feedback about this article

Recommended articles

How to receive group emails

Read More

TN - 1240 Creating a Watchlist Using an Import File

Read More
Support Icon

CONTACT SUPPORT

How to reach us

10800 Midlothian Turnpike Tpke, Suite 209, Richmond, VA 23235

1.877.INSOURCE

Technical Support - 1.888.691.3858

Contact Us

  • InSource Solutions
  • InSource Training
  • InSource Client Portal
  • Log In
InSource Solutions Logo

© 2025 InSource Solutions. All Rights Reserved.

Knowledge Base Software powered by Helpjuice

Expand