In fact, you can use this
technique to run the task using the system account. Because people have differing rights, you
need to test the task using the credentials of the person who normally runs it.
/End
The /End parameter forces a task to stop, even if the task is in the middle of processing data.
Consequently, you should use this parameter with care to avoid data loss or odd system behavior.
You can only use this parameter to end programs started with the Task Scheduler. Use the TaskKill
utility described in the ???Terminating Tasks with the TaskKill Command??? section of Chapter 21
to end other processes. This parameter uses the following syntax:
SCHTASKS /End [/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. In most cases, you??™ll also need
to supply the /U and the /P command line switches when using this switch.
/U [domain\]user Specifies the username on the remote system. This name may not match
the username on the local system. You??™ll need to supply a domain name when working with a
domain controller.
Pages:
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531