4

I'm trying to add a scheduled task to start every day at a fixed hour even if the computer is in sleep mode. In the Windows Scheduled Tasks Manager UI, there is a check-box labeled "Wake the computer to run this task".

How can I set this option with schtasks in cli?

The OS is Windows XP Pro.

My command right now is: schtasks /create /tn "asdf" /tr asdf.cmd /sc DAILY /st 23:00:00 /ru System

Francis
  • 481
  • 2
  • 7
  • 19

2 Answers2

3

The property cannot be set using schtasks.

See the Power Saving section here

pk.
  • 6,451
  • 2
  • 42
  • 63
0

There appears to be no such parameter.

http://technet.microsoft.com/en-us/library/cc772785(v=ws.10).aspx

As a workaround, you can create such a task from the GUI, export it, and import that to other machines. Detailed description

mfinni
  • 36,144
  • 4
  • 53
  • 86