Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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.

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

share|improve this answer

Your Answer

 
discard

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.