 | PowerShellActionPlatformOption Enumeration |
Options for when to convert actions to PowerShell equivalents.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax[FlagsAttribute]
public enum PowerShellActionPlatformOption
<FlagsAttribute>
Public Enumeration PowerShellActionPlatformOption
[FlagsAttribute]
public enum class PowerShellActionPlatformOption
Members
| Member name | Value | Description |
---|
| Never | 0 |
Never convert any actions to PowerShell. This will force exceptions to be thrown when unsupported actions our action quantities
are found.
|
| Version1 | 1 |
Convert actions 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.
|
| Version2 | 2 |
Convert all ShowMessageAction and EmailAction references to their PowerShell equivalents on systems
on or after Windows 8 / Server 2012.
|
| All | 3 | Convert all actions regardless of version or operating system. |
See Also