Link to home
Start Free TrialLog in
Avatar of enjama
enjama

asked on

Windows 2008 r2 scheduled jobs not running

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>
Avatar of Haresh Nikumbh
Haresh Nikumbh
Flag of India image

check on synchronize across time zones task scheduler
User generated image
ASKER CERTIFIED SOLUTION
Avatar of SidFishes
SidFishes
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of enjama
enjama

ASKER

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

@takecoffe - Why?
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
Avatar of enjama

ASKER

Added - waiting till 5am tomorrow.
Avatar of enjama

ASKER

Worked Thank you!  I added system to run as batch job.
Avatar of enjama

ASKER

I still can't find any documentation about this.  Any one know?