Enable "All Tasks History"

Custom.TaskScheduler2.Task.EnableTaskHistory.Recovery (Recovery)

Enables Task Scheduler event log on Windows 2008 and later.

Element properties:

TargetMicrosoft.Windows.OperatingSystem
MonitorCustom.TaskSchedulerV2.EventLogEnabled.Monitor
Reset MonitorFalse
RemotableTrue
Timeout120
CategoryCustom
Enabledfalse
AccessibilityInternal

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction Custom.TaskScheduler2.Task.EnableTaskHistory.WriteAction Default

Source Code:

<Recovery ID="Custom.TaskScheduler2.Task.EnableTaskHistory.Recovery" Accessibility="Internal" Enabled="false" Target="Windows!Microsoft.Windows.OperatingSystem" Monitor="Custom.TaskSchedulerV2.EventLogEnabled.Monitor" ResetMonitor="false" ExecuteOnState="Warning" Remotable="true" Timeout="120">
<Category>Custom</Category>
<WriteAction ID="WA" TypeID="Custom.TaskScheduler2.Task.EnableTaskHistory.WriteAction">
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</Recovery>