Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 2 down vote accepted

The property cannot be set using schtasks.

See the Power Saving section here

share|improve this answer

There appears to be no such parameter.

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.