PowerShell Check Open Ports with Test-NetConnection ─□✕ March 9, 2026May 5, 2026 PowerShell Tips Editor 4 min read PowerShell Check Open Ports with Test-NetConnection Test-NetConnection checks whether a specific TCP port is open on a host. Learn to scan ports, detect firewall blocks, and test service availability.