Solved

Windows 2008 r2 scheduled jobs not running

Posted on 2013-06-20
7
338 Views
Last Modified: 2013-06-21
Hello all -

I have a scheduled job that runs when I'm logged onto the machine, doesn't run when I'm not.  

I exported the job so you can see it below.  Any ideas?

<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
  <RegistrationInfo>
    <Date>2013-05-13T14:55:26.0712243</Date>
    <Author>SBB14\njama</Author>
  </RegistrationInfo>
  <Triggers>
    <CalendarTrigger>
      <StartBoundary>2013-05-13T05:00:00</StartBoundary>
      <Enabled>true</Enabled>
      <ScheduleByDay>
        <DaysInterval>1</DaysInterval>
      </ScheduleByDay>
    </CalendarTrigger>
  </Triggers>
  <Principals>
    <Principal id="Author">
      <UserId>SBB14\larry</UserId>
      <LogonType>Password</LogonType>
      <RunLevel>HighestAvailable</RunLevel>
    </Principal>
  </Principals>
  <Settings>
    <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
    <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
    <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
    <AllowHardTerminate>true</AllowHardTerminate>
    <StartWhenAvailable>false</StartWhenAvailable>
    <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
    <IdleSettings>
      <StopOnIdleEnd>true</StopOnIdleEnd>
      <RestartOnIdle>false</RestartOnIdle>
    </IdleSettings>
    <AllowStartOnDemand>true</AllowStartOnDemand>
    <Enabled>true</Enabled>
    <Hidden>false</Hidden>
    <RunOnlyIfIdle>false</RunOnlyIfIdle>
    <WakeToRun>true</WakeToRun>
    <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
    <Priority>7</Priority>
  </Settings>
  <Actions Context="Author">
    <Exec>
      <Command>D:\Prod\LogAnalysis\cmd\AnalyzeLogs.cmd</Command>
      <WorkingDirectory>D:\Prod\LogAnalysis\cmd\</WorkingDirectory>
    </Exec>
  </Actions>
</Task>
0
Comment
Question by:enjama
  • 4
  • 2
7 Comments
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39262422
check on synchronize across time zones task scheduler
tasks
0
 
LVL 36

Accepted Solution

by:
SidFishes earned 500 total points
ID: 39262436
I had this problem recently with server 2003 and I expect the answer may the same

run as admin >secpol.msc
Security Settings > Local Policies > user Rights assignment > Log on as a batch Job
 and then make sure the user the task runs under is added

(or maybe not)
0
 

Author Comment

by:enjama
ID: 39262462
@SIDFISHES - I have the user as "SYSTEM".  Isn't system an admin?  That would take care of the batch job issue??

@takecoffe - Why?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 36

Expert Comment

by:SidFishes
ID: 39262506
I would think so however I'm no guru on this stuff.  

On my server 08 r2 instance, there is no entry in log on as batch for system - you need to add it....

Probably worth a try
0
 

Author Comment

by:enjama
ID: 39263306
Added - waiting till 5am tomorrow.
0
 

Author Comment

by:enjama
ID: 39265828
Worked Thank you!  I added system to run as batch job.
0
 

Author Comment

by:enjama
ID: 39265832
I still can't find any documentation about this.  Any one know?
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question