Tag Archives: remote management

26Jul/17

Use Test-NetConnection in PowerShell to See If A Port Is Open

The days of usingĀ ping.exe to see if a host is up or down are over. Your network probably shouldn’t allow ICMP to just fly around unaddressed, and your hosts probably shouldn’t return ICMP echo request (ping) messages either. So how do I know if a host is up or not?

Well, it involves knowing about what your host actually does. What ports are supposed to be open? Once you know that, you can useĀ Test-NetConnection in PowerShell to check if the port is open and responding on the host you’re interested in.

Continue reading