Enable "All Tasks History"
Custom.TaskScheduler2.Task.EnableTaskHistory.Recovery (Recovery)
Enables Task Scheduler event log on Windows 2008 and later.
Element properties:
Member Modules:
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>