task scheduler commands for Power Conditions

Anonymous
2012-02-07T18:39:36+00:00

Hi,

I am creating scheduled task using commands on the "OnAfterInstall" event of custom installer class of MSI package.

Every time scheduled task gets created on Win7, by defalt under the "Conditions" tab, the Power section has following options selected -

"Start the task only if the computer is on AC power"  and "Stop if computer switches to battery power ".

I don't want this when I create a scheduled task. How do I get rid off it? is there any commands to not select these two options by default?

this is an immediate need, any reply would be highly appreciated.

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2012-02-08T16:26:40+00:00

    Thanks. I have posted my query where you suggested.

    0 comments No comments