Task Scheduler Doesn't Function As Advertised

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

Guest

Online help text reads as follows:

"To schedule a task that runs every 20 minutes
The following command schedules a security script, Sec.vbs, to run every 20 minutes. The command uses the /sc parameter to specify a minute schedule and the /mo parameter to specify an interval of 20 minutes."

"Because the command does not include a starting date or time, the task starts 20 minutes after the command completes, and runs every 20 minutes thereafter whenever the system is running. Notice that the security script source file is located on a remote computer, but that the task is scheduled and executes on the local computer."

"schtasks /create /sc minute /mo 20 /tn "Security Script" /tr \\central\data\scripts\sec.vbs"

Well, sir, this does not schedule a task that runs every 20 minutes. It runs once, then again in 20 minutes, then tomorrow at the time scheduled.
 
Mark D. Rockman said:
Online help text reads as follows:

"To schedule a task that runs every 20 minutes
The following command schedules a security script, Sec.vbs, to run every
20 minutes. The command uses the /sc parameter to specify a minute schedule
and the /mo parameter to specify an interval of 20 minutes."
"Because the command does not include a starting date or time, the task
starts 20 minutes after the command completes, and runs every 20 minutes
thereafter whenever the system is running. Notice that the security script
source file is located on a remote computer, but that the task is scheduled
and executes on the local computer."
"schtasks /create /sc minute /mo 20 /tn "Security Script" /tr \\central\data\scripts\sec.vbs"

Well, sir, this does not schedule a task that runs every 20 minutes. It
runs once, then again in 20 minutes, then tomorrow at the time scheduled.


Use the facilities built into the Task Scheduler itself
to run a job once every 20 minutes. It works extremely
well when configured properly.
 
MDR,
Mark D. Rockman said:
Online help text reads as follows:

"To schedule a task that runs every 20 minutes
The following command schedules a security script, Sec.vbs, to run every
20 minutes. The command uses the /sc parameter to specify a minute schedule
and the /mo parameter to specify an interval of 20 minutes."
"Because the command does not include a starting date or time, the task
starts 20 minutes after the command completes, and runs every 20 minutes
thereafter whenever the system is running. Notice that the security script
source file is located on a remote computer, but that the task is scheduled
and executes on the local computer."
"schtasks /create /sc minute /mo 20 /tn "Security Script" /tr \\central\data\scripts\sec.vbs"

Well, sir, this does not schedule a task that runs every 20 minutes. It
runs once, then again in 20 minutes, then tomorrow at the time scheduled.

see:
http://is-it-true.org/nt/xp/atips/atips33.shtml

Schtasks.exe is intended for WinXP. If you want to use it on Win2k you need
to hexedit the binary, or search
around in Google for a modified binary.

hth,
Mark Pryor
 
Back
Top