power shell 测试网络-和多地址测试网络

1-测试网络 

Test-connection -computername 172.28.2.28   

返回的结果

 

 

测试多地址

test-connection -computername 172.28.2.28  172.28.2.29

  

静默测试网络

test-connection -computername 172.28.2.28 -quiet

  

文件夹测试网络

$host  =  cat "c:\tmp\hosts.txt"

test-connection -computername (get-content $host) -erroraction silentlycontineue  

  

 

posted @ 2022-03-01 17:54  XXLLA  阅读(76)  评论(0编辑  收藏  举报