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

5,516

The property cannot be set using schtasks.

See the Power Saving section here

Share:
5,516

Related videos on Youtube

Francis
Author by

Francis

Updated on September 18, 2022

Comments

  • Francis
    Francis over 1 year

    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