How to automate rebooting when network link is down?

prvnrk

New member
Local time
8:09 AM
Messages
36
Location
London
Hello

I have no knowledge on batch programming or scripting on Windows 7. My requirement is to reboot Windows 7 Professional machine automatically when network link (wired) is down. We can also do a ping to a remote host (which is always UP) and if that fails, we can initiate a reboot.

If we can setup a batch file to perform this we can perhaps add it into the Windows scheduler to check every 5 or 10 minutes. Could anyone please provide me a full batch file for this requirement?

Many thanks!
 

My Computer My Computer

At a glance

Windows 7 Pro 64-bitCore i58GBATI
Computer Manufacturer/Model Number
HP EliteBook 8470p
OS
Windows 7 Pro 64-bit
CPU
Core i5
Memory
8GB
Graphics Card(s)
ATI
Hard Drives
Toshiba SATA 500GB 7200rpm
I can think of some complicated ways of doing this using a batch file, but let's see what others post.

I would use a scripting tool like AutoIt. If no one posts a batch file, I'll try and put together some AutoIt code for you.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Back
Top