Re: A scheduled task "Could not start"



Thank you Pegasus!

I did as you advised and we'll see tomorrow morning...
What I don't understand is why does the administrator looses his "batch
capabilities" after midnight :-)

Before this change of settings the task ran smoothly at 7:00, 9:00, ...
21:00 but stopped running next morning at 7:00. Why is that?

Primoz


In article <#HMCFwQ6GHA.4468@xxxxxxxxxxxxxxxxxxxx>, I.can@xxxxxxx
says...

"P. Bradac" <primoz.bradac@xxxxxxxxxxxxxx> wrote in message
news:MPG.1f900c11a5b12415989689@xxxxxxxxxxxxxxxxxxxxxxx
On a Windows 2000 Server I have a script that checks whether some
services are running. If a service is not running the task attempts to
start it and sends a message to my E-mail box. The script is started via
a scheduled task:

"Every 2 hours from 7:00 for 16 hours every day starting 4.10.2006"

Now the first day I created the sheduled task everything ran smoothly
but on every new day in the morning the status of the task is "Could not
start". The task is run under the System Administrator user with
appropriate password. Only if I fill in the password of the
administrator again in the field Run as: in the task properties, the
task is scheduled again again - but runs only for that day.

What could be the cause of it?

TIA,
Primoz

Allow the account used for the scheduled task to log on
as a batch job. Run gpedit.msc, then follow this path:
Local Computer Policy / Computer Configuration / Windows Settings /
Security Settings / Local Policy / User Rights / Logon as a batch job.



.



Relevant Pages

  • Re: Running Scheduled Tasks Remotely Without Full Administrator Ri
    ... It seems that in order to CREATE a task, one must be an administrator. ... What if you give the user "Run as Batch" right explicitly? ... try to create the scheduled task with the test user. ... MCSA Windows 2003 server ...
    (microsoft.public.windows.server.general)
  • Re: Running Scheduled Tasks Remotely Without Full Administrator Ri
    ... There is no Logon as Batch unless you created that. ... administrator. ... try to create the scheduled task with the test user. ... MCSA Windows 2003 server ...
    (microsoft.public.windows.server.general)
  • Re: Running Scheduled Tasks Remotely Without Full Administrator Ri
    ... Where is "Run as Batch"? ... It seems that in order to CREATE a task, one must be an administrator. ... try to create the scheduled task with the test user. ... MCSA Windows 2003 server ...
    (microsoft.public.windows.server.general)
  • Re: Running Scheduled Tasks Remotely Without Full Administrator Ri
    ... It seems that in order to CREATE a task, one must be an administrator. ... What if you give the user "Run as Batch" right explicitly? ... try to create the scheduled task with the test user. ... MCSA Windows 2003 server ...
    (microsoft.public.windows.server.general)
  • Re: Run batch w/o log on
    ... enabled Wake the computer... ... > It does not run with administrator logged off. ... If you want to ensure the script has the same permissions as Administrator then make sure you specify the Administrator account and its correct login password in the security for the scheduled task. ...
    (microsoft.public.windowsxp.basics)