ActionCollectionPowerShellConversion Property

Gets or sets the systems under which unsupported actions will be converted to PowerShell ExecAction instances.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
[DefaultValueAttribute(typeof(PowerShellActionPlatformOption), "Version2")]
public PowerShellActionPlatformOption PowerShellConversion { get; set; }

Property Value

PowerShellActionPlatformOption
The PowerShell platform options.

Remarks

This property will affect how many actions are physically stored in the system and is tied to the version of Task Scheduler.

If set to Never, then no actions will ever be converted to PowerShell. This will force exceptions to be thrown when unsupported actions our action quantities are found.

If set to Version1, then actions will be converted only under Version 1 of the library (Windows XP or Windows Server 2003 and earlier). This option supports multiple actions of all types. If not specified, only a single ExecAction is supported. Developer must ensure that PowerShell v2 or higher is installed on the target computer.

If set to Version2 (which is the default value), then ShowMessageAction and EmailAction references will be converted to their PowerShell equivalents on systems on or after Windows 8 / Server 2012.

If set to All, then any actions not supported by the Task Scheduler version will be converted to PowerShell.

See Also