OS Scheduled Task

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

Anyones know how to create 1 Scheduled Task with mutiple schedules using
the command "schtasks" instead of GUI?

Example:
Task1 runs on on every 2nd Mon 10am.
Task1 runs on every 5th of the Month 8pm.

Same task, muliple schedules.
 
You sure the answer is there?

Not even in the following links:

http://technet2.microsoft.com/Windo...9d11-46c2-a8ef-87b297c68d171033.mspx?mfr=true

http://support.microsoft.com/default.aspx/kb/814596

Dave Patrick said:
See the examples on this page.

http://www.microsoft.com/resources/.../xp/all/proddocs/en-us/schtasks.mspx?mfr=true

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

TBoon said:
Hi there,

Anyones know how to create 1 Scheduled Task with mutiple schedules using
the command "schtasks" instead of GUI?

Example:
Task1 runs on on every 2nd Mon 10am.
Task1 runs on every 5th of the Month 8pm.

Same task, muliple schedules.
 
Yes, /sc works for Monthly OR Daily schedule. Not AND.
I want 2 different schedule 1 same task...

Dave Patrick said:
Yes, use the /sc switch

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

TBoon said:
You sure the answer is there?

I don't believe you can.

I have a scheduled job with different schedules for the same task that I must add to remove computers.
What I do is create the task on my computer using the GUI.
I then have a script (batch) that copies the "%SystemRoot%\Tasks\MyTask.JOB" file to
the other computers and I use the schtasks /change command to reset the context / password
on each remote computer.




Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
schtasks /create /tn TaskName1 /tr calc.exe /sc daily /mo 14 /st 10:00 /sd
01/01/2007 /s Dell670 /ru "System"

schtasks /create /tn TaskName2 /tr calc.exe /sc monthly /mo 1 /d 5 /st 20:00
/sd 01/01/2007 /s Dell670 /ru "System"

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
 
That is 2 different tasks, which is not what I am looking at...

Dave Patrick said:
schtasks /create /tn TaskName1 /tr calc.exe /sc daily /mo 14 /st 10:00 /sd
01/01/2007 /s Dell670 /ru "System"

schtasks /create /tn TaskName2 /tr calc.exe /sc monthly /mo 1 /d 5 /st
20:00 /sd 01/01/2007 /s Dell670 /ru "System"

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

TBoon said:
Yes, /sc works for Monthly OR Daily schedule. Not AND.
I want 2 different schedule 1 same task...
 
Back
Top