Test-NetConnection

有了PowerShell 4.0,排除网络故障的日子就会轻松很多。Test-NetConnection cmdlet将多个测试整合到了一个简单的有几个参数的命令当中。例如,命令Test-NetConnection -ComputerName www.searchsv.com.cn -InformationLevel Detailed将尝试连接网站www.searchsv.com.cn,并返回详细清单的诊断信息。

原文地址:https://www.cnblogs.com/dreamer-fish/p/3779310.html