Forum Home
Press F1
 
Thread ID: 118993 2011-06-30 02:41:00 Windows 7 task scheduler malone73 (15106) Press F1
Post ID Timestamp Content User
1213480 2011-06-30 02:41:00 I've been trying to become familiar with the Task Scheduler in Windows 7 (%windir%\system32\taskschd.msc) which appears much more complicated to use than the scheduler in Window XP. I've managed to get it to work, except for one particular feature. In the settings you can select "Run task as soon as possible after a scheduled task is missed". According to the help files, this means that if your computer happens to be off when the scheduled task should start to run, it will try to run that task soon after the computer is restarted. But I just can't get that feature to work. The task (simply running a .bat file) runs perfectly well when initiated manually or at a specified time when the computer is on. But if the task is missed because the computer is off, it never starts after the computer is rebooted.

I wonder if there's anyone out there more familiar with the Windows 7 Task Scheduler than I who might be able to suggest what's going on?
malone73 (15106)
1213481 2011-06-30 02:44:00 Perhaps it waits for X-minutes of the system being idle? Cato (6936)
1213482 2011-06-30 02:57:00 Yes, the scheduler is meant to wait 10 minutes after the computer has been restarted and then it should start the task.

But it doesn't!
malone73 (15106)
1213483 2011-06-30 03:44:00 Just tried it, turned off the computer and after the scheduled time, the App didn't run, but it did run approx ten minutes after the Computer was restarted.

Have a look in the actions on the right, make sure the history is enabled, if it is have a look and see what it says, there may be a reason why it didn't run.
wainuitech (129)
1213484 2011-06-30 04:42:00 Thanks wainuitech .

I suppose that gives me some confidence that I'll eventually sort it out!

But I've just tried it several more times . Different tasks (putting a message on the desktop, just opening notepad and running a batch file) . All work when run manually or at a specific time so I must have my permissions right . The Task Scheduler service is running and automatically starts at boot . All tasks that have run appear in history, but no mention at all of the task unable to run when the machine is off and which should run 10mins after boot . Nothing I can see in the Windows event viewer .

I'm at a loss!

Any other ideas very welcome!!
malone73 (15106)
1213485 2011-06-30 12:30:00 Weird. I tested it here with win7 and it did exactly what wainui's did.

The History showed a warning saying it had missed the schedule. Do you see this?
linw (53)
1213486 2011-06-30 21:00:00 No linw, there's nothing in the history informing me the schedule had been missed.

I've now tried it on a different computer with a different variety of Windows 7 (Ultimate instead of Professional) and I still get the same effect.

It MUST be one of my settings.

If either of you had the time or inclination it would be really great if you could export the task (the one that worked for you) to the .XML file and post the contents. Then I could go over each setting one by one and work out what's going on.

The only other thing that has occurred to me is that I have an audio player installed (Total Recorder) which incorporates its own scheduler. There may be a conflict between that and the Windows scheduler. So I'll remove Total Recorder and see what happens. Clutching at straws! But thanks for your help.
malone73 (15106)
1213487 2011-06-30 22:57:00 I disabled mine not because of any complication but its just as easy to do it manually PeterQ (16315)
1213488 2011-06-30 23:02:00 The one that I ran was only a exe file ( ccleaner to be exact), not a batch file, so maybe thats where the problem is ??

Haven't got time to do a batch file right now, got appointments, but I'll give it a go later today and post back the result.
wainuitech (129)
1213489 2011-06-30 23:31:00 W7 task scheduler has a command line (technet.microsoft.com), but you need somehow create or find a script to implement what you want as noted here (social.technet.microsoft.com) for a missed task. kahawai chaser (3545)
1 2 3