

The Get-NetTCPConnection cmdlet gets current TCP connections and shows TCP connection properties such as local or remote IP address, local or remote port, and connection state. This command is quite similar to the netstat -ab CMD command. To get the data, we will be using the Get-NetTCPConnection PowerShell command. If you're running into network issues with a computer or simply want to ensure a specific port is open/closed, you can use it to view the port status easily. Because of this, I thought it might be useful to have a small action in Lansweeper that lets you quickly view the ports status of a specific device. It is also one of the most popular methods used by attackers when searching for a vulnerable server to breach according to the SANS Institute. Port scanning can be used for a variety of reasons ranging from enhancing your devices' security to resolving network issues.


This week I'm looking at how you can use a pretty basic PowerShell command to view the port statuses on your Windows computers. October is cybersecurity month, so we're going to look more closely at some security-related topics for the next two Pro Tips.
