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.
/P [password] Specifies the password for the given user. You can provide the command line
switch without specifying the password on the command line in cleartext. The system prompts
you for the password. Using this feature can help you maintain the security of passwords used
on your system.
SCHEDULING AND MANAGING TASKS 211
/TN taskname Specifies the name of the task you want to run. Running a task at the command
line is different from having the Task Scheduler run it for you. Using this option forces the utility
to use your credentials, rather than the Task Scheduler credentials, which means that an executable
that normally works could fail when used in this way.
TIP You can use the RunAs utility described in the ???Impersonating a User with the RunAs Utility???
section of Chapter 6 to test run a task using another person??™s credentials.
Pages:
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530