Scheduling tasks through command line.

  • Thread starter Thread starter kothadiya.denish
  • Start date Start date
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.
 
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
 
Back
Top