Solved

Windows 2008 r2 scheduled jobs not running

Posted on 2013-06-20
7
340 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

690 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