Task missed when the computer was off
In the computer I use at the office, I need to create a task in Task Scheduler to run monthly on the first Monday of each month. And everything works fine, except when that day is holiday. The computer is off in weekend and holidays.If this occurs. How I can force this task to run the next time I turn on the computer?1 person got this answerI do too
August 17th, 2010 4:10am

Go in the task's Properties and select the option to "Wake the computer to run this task" John
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2010 3:47pm

Thank you for you reply. But this option is useful only in standby or hibernate status. This option don't work in turn off (shutdown) status.
August 17th, 2010 6:52pm

If it can do it while the computer is hibernating then it should be able to do it when the computer is shut down normally. Scheduled Tasks use the Real Time Clock and ACPI power management to turn on the computer, most newer computers are capable of doing this. Did you actually try it? John
Free Windows Admin Tool Kit Click here and download it now
August 17th, 2010 7:14pm

I tried that, but unfortunately my computer is very old and not turn on to run the task.I think the solution would be to create a batch file to do a countdown to a date (30 days) and run when my computer starts. When the counter reaches 0 (or less) then run the main task, and then restart the counter in 30 days. Unfortunately, I do not know how to create the counter.TitoHL
August 17th, 2010 9:59pm

On 8/17/2010 3:59 PM, TitoHL wrote:I tried that, but unfortunately my computer is very old and not turnon to run the task. I think the solution would be to create a batchfile to do a countdown to a date (30 days) and run when my computerstarts. When the counter reaches 0 (or less) then run the main task,and then restart the counter in 30 days. Unfortunately, I do not knowhow to create the counter.Look in the BIOS and verify if there is an option to enable or disable the ACPI startup option.There are only 12 months so I think it would be just as easy to look at the yearly calendar once a year and use the Schtasks command in a batch file to create the backup tasks for the whole year and schedule around the holiday Mondays, the syntax would be:schtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st HH:MM:SS /sd /MM/DD/YYYY /ru UserName /rp PasswordIf you start with the month of September the batch file could look something like this:---------------------------------------------------------------------------------------------------------------------schtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /09/07/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /10/04/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /11/01/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /12/06/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /01/04/2011 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /02/07/2011 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /03/07/2011 /ru UserName /rp Password...and so on... John
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2010 5:20am

In the computer I use at the office, I need to create a task in Task Scheduler to run monthly on the first Monday of each month. And everything works fine, except when that day is holiday. The computer is off in weekend and holidays.If this occurs. How I can force this task to run the next time I turn on the computer? You're overthinking this problem. Just configure Scheduled Tasks to notify you of missed tasks . If the scheduled backup date was on a weekend or holiday with the computer off, the next time you turn the computer on you will get a notification that "Some tasks did not run." At that point, manually start the backup task.
August 18th, 2010 8:32am

Sorry there is a mistake in the above. There is no slash (/) immediately after the /sd switch. Here is the corrected syntax: schtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st HH:MM:SS /sd MM/DD/YYYY /ru UserName /rp PasswordIf you start with the month of September the batch file could look something like this:---------------------------------------------------------------------------------------------------------------------schtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd 09/07/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd 10/04/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd 11/01/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd /12/06/2010 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd 01/04/2011 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd 02/07/2011 /ru UserName /rp Passwordschtasks /create /tn MonthBack /tr "Backup.bat" /sc once /st 08:00:00 /sd 03/07/2011 /ru UserName /rp Password...and so on... John
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2010 3:20pm

Thanks LemP.Your answer solved the problem very efficiently and with only one click. Great! That's what I wanted.
August 18th, 2010 4:34pm

Thanks, John John.I learned a lot with your answers, but the LemP's post solved the problem.
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2010 4:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics