To set the Task Scheduler to start manually, type
SC Config Schedule Start= Demand
and press Enter. Notice the space between the equals sign (=) and the value. Of course, if you??™re
running tasks every day, the automatic start option makes more sense. In this case, you type
SC Config Schedule Start= Auto
and press Enter. When you want to determine the Task Scheduler
status, type
SC QueryEx Schedule
and press Enter. Use
QueryEx
, rather than
Query
, so that
you obtain the Process Identifier (PID) as part of the output??”many command line utilities require
the PID as input. To start the Task Scheduler, type
SC Start Schedule
and press Enter.
The Task Scheduler logs on using the Local System account. Normally, this account provides
more than sufficient rights for local activities. However, when you automatically perform tasks on
remote machines, you might need to change the account to handle the increased security requirements.
Always make sure you have the Task Scheduler service running when you need to execute
applications automatically. To change the password to another account, type
SC Config Schedule
Obj= ".\
AccountName
" Password= "
AccountPassword
"
and press Enter.
Pages:
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512