I'm trying to schedule a task with SCHTASKS. I'm having trouble
creating it. Here's how I attempt to create it.

schtasks /Create /SC DAILY /ST 10:29:00 /TN "myTaskName" /TR
"C:\myBatchFile"

After executing that, I am prompted to
"Please enter the run as password for USER:"

I don't know what that is, so I just make one up. I am warned that it
may not run correctly, and it doesn't run correctly.

Is there a way to skip the password thing? This is a public computer,
so I don't want to bog things down with passwords.

Thanks!

Re: SCHTASKS help by tlviewer

tlviewer
Tue May 09 12:19:00 CDT 2006

Ernie,
"ern" <erniedude@gmail.com> wrote in message
news:1147188829.229057.140660@j73g2000cwa.googlegroups.com...
> I'm trying to schedule a task with SCHTASKS. I'm having trouble
> creating it. Here's how I attempt to create it.
>
> schtasks /Create /SC DAILY /ST 10:29:00 /TN "myTaskName" /TR
> "C:\myBatchFile"
>
> After executing that, I am prompted to
> "Please enter the run as password for USER:"
>

http://www.theeldergeek.com/scheduled_tasks_password.htm

If you are on WinXP, this is a known issue -- see above link.
Since you don't explicitly give credentials, Schtasks will use your current
login name, thus it asks you for a password. This behavior is exactly like
the Mstask GUI.

good luck,
tlviewer



Re: SCHTASKS help by ern

ern
Tue May 09 14:41:02 CDT 2006


tlviewer wrote:
> Ernie,
> "ern" <erniedude@gmail.com> wrote in message
> news:1147188829.229057.140660@j73g2000cwa.googlegroups.com...
> > I'm trying to schedule a task with SCHTASKS. I'm having trouble
> > creating it. Here's how I attempt to create it.
> >
> > schtasks /Create /SC DAILY /ST 10:29:00 /TN "myTaskName" /TR
> > "C:\myBatchFile"
> >
> > After executing that, I am prompted to
> > "Please enter the run as password for USER:"
> >
>
> http://www.theeldergeek.com/scheduled_tasks_password.htm
>
> If you are on WinXP, this is a known issue -- see above link.
> Since you don't explicitly give credentials, Schtasks will use your current
> login name, thus it asks you for a password. This behavior is exactly like
> the Mstask GUI.
>
> good luck,
> tlviewer

Thanks for the help. That's a bad design. If you are logged in as an
administrator that does not have a password, the schtasks should let
you schedule the task without the password.