使用powershell 测试端口连接性!

使用powershell 测试与TCP端口的连接。

test-netconnection  www.baidu.com -port 80

 

 使用静默测试

Test-netconnection www.baidu.com -port 80 -informationlevel  quiet 

 

 

测试连接到TCP的端口相应时间

 Measure-Command{Test-NetConnection www.baidu.com -Port 80}| % TotalSeconds

 

posted @ 2022-05-17 10:03  XXLLA  阅读(2491)  评论(0)    收藏  举报