• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Scheduled Tasks Not Working All of a Sudden

C

childofthe1980s

#1
Hello:

I have a scheduled task running overnight on Windows Server 2003. The
administrative user that configures and "runs" this task remains logged onto
the server, so that the task successfully runs. And, this task has run
successfully every night for months.

Over the last two nights, ithough, it has not run. I do not know why nor
are the logs mentioning anything pertinent as usual.

Any ideas as to why? The task runs a .cmd (macro) file. When I run this
file by itself, it runs perfectly. It's just that I cannot get the Scheduled
Task to run.

I recreated the task, stopped and started SQL, and stopped and started the
Task Scheduler service.

childofthe1980s
 

My Computer

D

Dave Patrick

#2
The fact you have to stay logged on for it to successfully run indicates
there's something fundamentally wrong with the task (mapped drives, etc.)

Scheduled Tasks|Advanced|View Log may provide some details. If the job
connects to another machine you may need to add the user/ group 'logon as
batch job' rights (server side). Control Panel|Admin Tools|Local Security
Policy\Local Policies\User Rights Assignments
"Log on as a batch job"

If the task completes but the job does not then there is a problem in the
job itself. Remember that if it involves network resources to make sure the
user account has permissions to the resources and also use UNC paths as
mapped drives won't natively exist when no one is logged on.


--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"childofthe1980s" wrote:

> Hello:
>
> I have a scheduled task running overnight on Windows Server 2003. The
> administrative user that configures and "runs" this task remains logged
> onto
> the server, so that the task successfully runs. And, this task has run
> successfully every night for months.
>
> Over the last two nights, ithough, it has not run. I do not know why nor
> are the logs mentioning anything pertinent as usual.
>
> Any ideas as to why? The task runs a .cmd (macro) file. When I run this
> file by itself, it runs perfectly. It's just that I cannot get the
> Scheduled
> Task to run.
>
> I recreated the task, stopped and started SQL, and stopped and started the
> Task Scheduler service.
>
> childofthe1980s
 

My Computer

P

Pegasus [MVP]

#3
"childofthe1980s" <childofthe1980s@newsgroup> said this in
news item news:FF3E8C0B-727A-4A4F-A666-BE62888EBF64@newsgroup

> Hello:
>
> I have a scheduled task running overnight on Windows Server 2003. The
> administrative user that configures and "runs" this task remains logged
> onto
> the server, so that the task successfully runs. And, this task has run
> successfully every night for months.
>
> Over the last two nights, ithough, it has not run. I do not know why nor
> are the logs mentioning anything pertinent as usual.
>
> Any ideas as to why? The task runs a .cmd (macro) file. When I run this
> file by itself, it runs perfectly. It's just that I cannot get the
> Scheduled
> Task to run.
>
> I recreated the task, stopped and started SQL, and stopped and started the
> Task Scheduler service.
>
> childofthe1980s
Let's have a look at the task itself!
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)