May 2, 2012
tom

Add a new scheduled task from command line with “wake the computer to run this task” on

Question

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

Asked by Francis

Answer

The property cannot be set using schtasks.

See the Power Saving section here

Answered by pk.

Related posts:

  1. Is it possible to disable a scheduled task from the command line in Windows XP?
  2. How to delete scheduled task from command line without confirmation? (schtasks delete)
  3. List, add, edit, delete Windows Scheduled Tasks from the command-line
  4. Creating a scheduled task using the AT command with a specific ID
  5. How to set up Windows Server 2003 to notify on scheduled task failure?

Leave a comment