Batch to force reboot based on System Up Time

Microsoft Windows xp professional w/sp2
April 7, 2010 at 09:41:10
Specs: Windows XP
I need help creating up a batch file that will checks a computers System Up Time and if the value is equal to greater than 7 days to force a reboot.

See More: Batch to force reboot based on System Up Time

Report •

April 12, 2010 at 10:51:26
I'm not sure if this is the way you want to head, but you can always make a batch file with the following command:
shutdown -r -c "Rebooting...."
And then you can create a Task Schedule:
Start > All Programs > Accessories > System Tools > Scheduled Tasks.
Then once that is open, "Add Scheduled Task", click Next on the Wizard info screen. Once the new window opens, click Browse, locate your restart batch file, then select "weekly". Next set up your criteria, and you're done!

A bit much when you explain it, but very simple to do.. And it should definitely do what you want it to do...

Report •
Related Solutions

Ask Question