$computerNames = @(“10.3.X.56″,”10.0.XX.123”)
$computerNames|%{
if(!(Test-Connection -ComputerName $_ -Quiet )){
cmd /c msg * ($_) 连接出现异常
}
}
$computerNames = @(“10.3.X.56″,”10.0.XX.123″) ==>这个是什么用法啊, @()
$computerNames|% ==>管道前加%是什么意思??