Always include a 4-digit year. The default is not to use an end time, so the task continues
to run indefinitely.
/ENABLE Enables the scheduled task (so it can run).
/DISABLE Disables the schedule task (it can??™t run, even when scheduled).
/IT Forces the task to run interactively only. The job runs when the user is logged on, but Vista
and above ignores it when the user is logged out.
/Z Marks the task for deletion after its final run (as specified in the schedule you provide). The
job isn??™t actually deleted??”Vista and above only marks it for deletion.
/Run
The /Run parameter runs an existing task, even if the task isn??™t scheduled to run. Running a task
using this method doesn??™t change the task schedule; the task runs using the schedule you set for it.
You can use this feature to test your tasks to ensure they work as anticipated. Check the \Windows\
SchedLgU.TXT file for the results of any task you run, especially on remote machines. This parameter
uses the following syntax:
SCHTASKS /Run [/S system [/U username [/P password]]] /TN taskname
The following list describes each of the command line arguments.
/S system Specifies the remote system that you want to check.
Pages:
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529