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</D ate>
<Author>SBB14\njama</Autho r>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2013-05-13T 05:00:00</ StartBound ary>
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInter val>
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>SBB14\larry</UserI d>
<LogonType>Password</Logon Type>
<RunLevel>HighestAvailable </RunLevel >
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>I gnoreNew</ MultipleIn stancesPol icy>
<DisallowStartIfOnBatterie s>false</D isallowSta rtIfOnBatt eries>
<StopIfGoingOnBatteries>tr ue</StopIf GoingOnBat teries>
<AllowHardTerminate>true</ AllowHardT erminate>
<StartWhenAvailable>false< /StartWhen Available>
<RunOnlyIfNetworkAvailable >false</Ru nOnlyIfNet workAvaila ble>
<IdleSettings>
<StopOnIdleEnd>true</StopO nIdleEnd>
<RestartOnIdle>false</Rest artOnIdle>
</IdleSettings>
<AllowStartOnDemand>true</ AllowStart OnDemand>
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunO nlyIfIdle>
<WakeToRun>true</WakeToRun >
<ExecutionTimeLimit>P3D</E xecutionTi meLimit>
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>D:\Prod\LogAnalys is\cmd\Ana lyzeLogs.c md</Comman d>
<WorkingDirectory>D:\Prod\ LogAnalysi s\cmd\</Wo rkingDirec tory>
</Exec>
</Actions>
</Task>
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.
<Author>SBB14\njama</Autho
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2013-05-13T
<Enabled>true</Enabled>
<ScheduleByDay>
<DaysInterval>1</DaysInter
</ScheduleByDay>
</CalendarTrigger>
</Triggers>
<Principals>
<Principal id="Author">
<UserId>SBB14\larry</UserI
<LogonType>Password</Logon
<RunLevel>HighestAvailable
</Principal>
</Principals>
<Settings>
<MultipleInstancesPolicy>I
<DisallowStartIfOnBatterie
<StopIfGoingOnBatteries>tr
<AllowHardTerminate>true</
<StartWhenAvailable>false<
<RunOnlyIfNetworkAvailable
<IdleSettings>
<StopOnIdleEnd>true</StopO
<RestartOnIdle>false</Rest
</IdleSettings>
<AllowStartOnDemand>true</
<Enabled>true</Enabled>
<Hidden>false</Hidden>
<RunOnlyIfIdle>false</RunO
<WakeToRun>true</WakeToRun
<ExecutionTimeLimit>P3D</E
<Priority>7</Priority>
</Settings>
<Actions Context="Author">
<Exec>
<Command>D:\Prod\LogAnalys
<WorkingDirectory>D:\Prod\
</Exec>
</Actions>
</Task>
check on synchronize across time zones task scheduler
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@SIDFISHES - I have the user as "SYSTEM". Isn't system an admin? That would take care of the batch job issue??
@takecoffe - Why?
@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
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
ASKER
Added - waiting till 5am tomorrow.
ASKER
Worked Thank you! I added system to run as batch job.
ASKER
I still can't find any documentation about this. Any one know?