Saturday, August 12, 2017


PowerShell Check if Server is alive

Use the script below to check if a server is alive # replace the server name to make it fit into your needs.

$server = “dc1.smtp25.org”

If (Test-Connection $server -count 1 -quiet) {
  Write-host  “The $server responded” -f yellow
}
else{

Write-host  “No connection to $server -f red
  Write-host “Script will stop” -f red
   Break
}



Oz Casey, Dedeal
Systems Engineer
http://smtp25.blogspot.com/ (Blog)
http://telnet25.wordpress.com/ (Blog)
https://twitter.com/Message_Talk (Twitter)


2 comments:

Bogart Mapagmahal said...

Thanks Great Post. We are professional, delivering a world-class moving, relocation, removal, and storage solutions at highly competitive market prices in Dubai-UAE.movers in dubai, best movers in dubai, best movers and packers in dubai, Cheap movers in dubai, office movers in dubai. Best Movers in Dubai
Respond in 24 hours, Phone: +971-526062215 East West Mover company that offers local movers, residential, commercial and worldwide moving services.

Asliraf Ammar said...

Thanks Great Post. We are professional, delivering a world-class moving, movers in dubai relocation, removal, and storage solutions at highly competitive market prices in Dubai-UAE. best movers in dubai, best movers and packers in dubai Respond in 24 hours, Phone: +971-526062215 East West Mover company that offers local movers, residential, commercial and worldwide moving services. Cheap movers in dubai, office movers in dubai.