TaskEnabled Property
Gets or sets a Boolean value that indicates if the registered task is enabled.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public bool Enabled { get; set; }
Property Value
Boolean
As of version 1.8.1, under V1 systems (prior to Vista), this property will immediately update the Disabled state and re-save the
current task. If changes have been made to the
TaskDefinition, then those changes will be saved.