Problem scenario
You are using Windows 7 and PowerShell version 3. You want to test if a port is open to a given IP address. (If you are using a modern version of PowerShell, use the Test-NetConnection command.) How do you find out if a port of an IP address is open or not?
Solution
Use the PowerShell function Test-TCPPortConnection written by Jonathan Medd.
…