==PING Pinging 172.20.9.15 with 32 bytes of data: Request timed out. Request timed out. Ping statistics for 172.20.9.15: Packets: Sent = 2, Received = 0, Lost = 2 (100% loss), Pinging 192.168.7.4 with 32 bytes of data: Request timed out. Request timed out. Ping statistics for 192.168.7.4: Packets: Sent = 2, Received = 0, Lost = 2 (100% loss), ==PORTS foreach( in '172.20.9.15','192.168.7.4'){foreach( in 1433,389,445,3389){=Test-NetConnection -Port -WarningAction SilentlyContinue; Write-Output (+':'++' '+.TcpTestSucceeded)}}