Stopping a Schedule Task for one day out of the month
Hi,I have a scheduled task that runs daily that backs up only the files that have been changed for that day. I also have a monthly task that I want to run once a month. When the monthly task runs, is there a way to stop the daily task from running?Thanks!
August 5th, 2008 9:05pm

Hello, Assuming that you are using the Task Scheduler of Windows Server 2008, you can follow the steps to adjust the settings of the daily task to make it stop working when the other monthly task which launches the same instance is running. 1. Open "Task Scheduler" and locate the daily task.2. Double-click the daily task and select the "Conditions" tab3. Select the checkbox of "Start the task only if the computer is idle for: 1 hour" and "Wait for idle for: 1 hour" Please note: The method has a side effect that the daily job may not be run if the server is always busy. You may consider developing script and modifying the monthly job as the following: 1.Delete the daily scheduled task via script2.Run the original monthly schedule task3.Re-create the daily scheduled task via script To manage scheduled task by script, please refer to the following links: WMI Tasks: Scheduled Taskshttp://msdn.microsoft.com/en-us/library/aa394601.aspx Win32_ScheduledJob Classhttp://msdn.microsoft.com/en-us/library/aa394399.aspx Hope it helps.Your potential. Our passion.
Free Windows Admin Tool Kit Click here and download it now
August 7th, 2008 2:01pm

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

Other recent topics Other recent topics