filmov
tv
How to ping multiple hostname or website ..#tricks #scripts
Показать описание
To Know about how to ping multiple host name or website at once. You will see a PowerShell script which will be helpful for you to do this and much more.
PowerShell scripts : copy from below start lines.
**********************************************************************************
foreach ($name in $name){
if(Test-Connection -ComputerName $name -Count 1 -ErrorAction SilentlyContinue){
Write-Host "$name is UP" -ForegroundColor Green
$Output+="$name is UP"+"'n"
}
else{
Write-Host "$name is Down" -ForegroundColor Red
$Output+="$name is Down"+" 'n"
}
}
PowerShell scripts : copy from below start lines.
**********************************************************************************
foreach ($name in $name){
if(Test-Connection -ComputerName $name -Count 1 -ErrorAction SilentlyContinue){
Write-Host "$name is UP" -ForegroundColor Green
$Output+="$name is UP"+"'n"
}
else{
Write-Host "$name is Down" -ForegroundColor Red
$Output+="$name is Down"+" 'n"
}
}