Using SCHTASKS...

A

adametz

Hello!

I am new to this newsgroup, and am looking for help using SCHTASKS under
WindowsXP-SP2.

Here is a sample of what I get when attempting to "remotely" run notepad
using SCHTASKS to create a task on the localhost address (127.0.0.1):

C:\Documents and Settings\Tester>schtasks /create /s 127.0.0.1 /tn foo2 /
tr notepad.exe /sc ONCE /ST 00:00:00 /RU "Tester" /RP testerpw
WARNING: The Scheduled task "foo2" has been created, but may not run because
the account information could not be set.

In the SCHTASKS log I see this:

"Task Scheduler Service"
Started at 6/12/2006 10:39:56 AM
"foo2.job" (notepad.exe) 6/12/2006 10:41:00 AM ** ERROR **
The attempt to retrieve account information for the specified task failed;
therefore, the task did not run. Either an error occurred, or no account
information existed for the task.
The specific error is:
0x8004130f: No account information could be found in the Task Scheduler
security database for the task indicated.
[ ***** Most recent entry is above this line ***** ]

Now if I eliminate the /S parameter, I can indeed create the task and have
it run. But this does not help me, because ultimnately, I need to run tasks
on other WindowsXP-SP2 machines (for which I have ADMIN account and
password) that I am using as remote distributed processes.

So...is there any "magic" that can be used to allow me to to do this? I
used to be able to do this until SP2 came around.

Any help would be greatly appreciated!

Jim Adametz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top