Scheduling tasks through command line.

K

kothadiya.denish

Hi,
I have an application which tries to schedule some tasks on a remote
machine.
To achieve this programatically I try to run the following command from
the command prompt window,

at \\<remote-hostname> <start-time> <file scheduled to be executed>

Using this command I am able to create a scheduled task on the remote
machine, but I observed that the scheduled task is not being executed.
When I dug into this issue I found that the task was not being because
the password was not set for "Run As" username specified (NT
AUTHORITY/SYSTEM).
I found that I could not even set this password manually because the
"Set Password" button was disabled.

Has anyone else faced this issue before or can anyone give me some
leads into this issue?

Thanks in advance,
Denish.
 
W

Wesley Vogel

Scheduled Tasks and the At command
Paste the following line into Start | Run and click OK...

hh mstask.chm::/agent_plus_at.htm

To set the AT service account
Paste the following line into Start | Run and click OK...

hh mstask.chm::/at_service_account.htm

Sceduled Tasks HELP.
Paste the following line into Start | Run and click OK...
hh mstask.chm
or
C:\WINDOWS\Help\mstask.chm

At HELP.
Schtasks is a more powerful superset command-line scheduling tool and
includes all the functionality found in the at command-line utility. Use
schtasks instead of at for all command-line scheduling tasks.
Paste the following line into Start | Run and click OK...

hh ntcmds.chm::/at.htm

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 

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