Андрей И.card.quoted4 oy oldin
if (Test-Connection -ComputerName $servers[0] -Quiet -Count 1) {

if ($servers[0] –eq $problemServer) {

Write-Error -Message "The server $servers[0] does not have the right

file!"

} else {

Get-Content -Path "\\$servers[0]\c$\App_configuration.txt"

}

} else {

Write-Error -Message "The server $servers[0] is not responding!"

}
  • Fikr bildirish uchun kirish yoki roʻyxatdan oʻtish