Re: Problem with SCHTASKS parameters
- From: Jenksa <Jenksa@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 8 Sep 2005 12:06:08 -0700
Thanks for the pointers, but the documentation is quite misleading. It would
appear that /U and /P are NOT necessary(at least when the logged in user owns
the job), but as via the GUI, /RP is necessary to change the job
characteristics. This is true whether the job is on the local machine, or a
remote one. This is obscurely obvious in the wording of the password prompt,
requesting the 'RUN AS psw for domain\user".
In addition, because of this apparent duplicate user of the /RP value, it is
impossible to change the run time password of an existing job via the owning
user, since you can't authenticate the job and change its psw in the same
command, eg.
"schtasks /change /tn xxx [/U owner /P userpsw] /RP xyz" doesn't work, since
xyz is NOT the right password for the current job. On the other hand,
changing the job /RU to another user first, eg. SYSTEM, then back /RU
origuser /RP newpsw DOES work.
The bug is that even with authentification failures, at least the EN/DISable
setting can be changed; I haven't tried all the others.
"Bill Stewart" wrote:
> Jenksa wrote:
>
> > I'm trying to use schtasks to modify existing jobs, but while my
> > QUERY's work, and my syntax seesm to match the documentation, I keep
> > getting an error on my /CHANGE commands: schtasks /change /S vidar /U
> > "AMSA\username" /P password /tn test /enablerunning on Vidar.
>
> Use "schtasks /change /?" for help.
>
> Carefully read the descriptions for /U and /P, and compare these with
> /RU and /RP.
>
> /U and /P define the credentials that Schtasks should use when
> authenticating on the remote system. /RU and /RP define the credentials
> used for the task itself.
>
> --
> Bill Stewart
>
.
- References:
- Problem with SCHTASKS parameters
- From: Jenksa
- Re: Problem with SCHTASKS parameters
- From: Bill Stewart
- Problem with SCHTASKS parameters
- Prev by Date: Re: Create shares and assigning permissons
- Next by Date: Using VBScript to add a printer through a login script to an AD OU
- Previous by thread: Re: Problem with SCHTASKS parameters
- Next by thread: Create shares and assigning permissons
- Index(es):
Relevant Pages
|