Announcement

Collapse
No announcement yet.

Script to check gateway connection (and restart windows server if down)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script to check gateway connection (and restart windows server if down)

    Hi, I would like to create a script that shuts down the system if the ping to gateway is failed.

  • #2
    Re: Script to check gateway connection (and restart windows server if down)

    This might give you an headstart...

    http://blog.nessus.nl/487/powershell...power-failure/
    Instead of stop-computer, use restart-computer
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment

    Working...
    X