Skip to content

How do I use RunLevel and Configure For when creating a task? #886

Answered by dahall
dumontjames asked this question in Q&A
Discussion options

You must be logged in to vote

RunLevel
The default parameters for RegisterTaskDefinition have it run as the currently executing user, which could be one without privileges. See the documentation for the underlying COM object here to understand the security requirements associated with the property. You may be required to specify an account depending on your scenario.

Configured for
TaskDefinition.Settings.Compatibility is the property that represents the "Configure for" item in the UI. See the documentation for each of those enum values to understand how they translate to OS versions.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by dahall
Comment options

You must be logged in to vote
1 reply
@matthew-mayer
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants