Windows 10: How do I configure Task Scheduler to run a task every time PC wakes up from sleep?

Discus and support How do I configure Task Scheduler to run a task every time PC wakes up from sleep? in Windows 10 Ask Insider to solve the problem; My laptop has a bug where the dedicated GPU consumes power every time it is woken up from sleep (ie I open the lid). The workaround is restarting the... Discussion in 'Windows 10 Ask Insider' started by /u/arif_senpai, Oct 30, 2020.

  1. How do I configure Task Scheduler to run a task every time PC wakes up from sleep?


    My laptop has a bug where the dedicated GPU consumes power every time it is woken up from sleep (ie I open the lid). The workaround is restarting the dGPU. I wrote a simple powershell script to restart it.

    In Task scheduler I configured to run the script at every logon. However the script runs only when I turn it on from shut down.

    I wish to make the script run every time I open the lid. How do I do that?

    submitted by /u/arif_senpai
    [link] [comments]

    :)
     
    /u/arif_senpai, Oct 30, 2020
    #1

  2. Scheduled Tasks Not Waking Computer

    Hi Michael,

    Thank you for being part of Windows 10.

    I appreciate you for providing details about the issue and your effort towards resolving it.

    Try the following steps and check if it helps:

    • To wake up your Windows computer from Sleep mode at a fixed time, type
      Task Scheduler
      in Search bar and hit Enter.
    • In the right side, select Create Task. A new window will open. Here under the
      General tab, fill in the Name and Description. Also check,
      Run with highest privileges.
    • Under the Triggers tab, click New. Another window will open. Select
      One time (or Daily if you want it repeated every day at a particular time). Set the Date and Time when you want your system to wake up from Sleep.
    • Next under the Actions tab, you have to mention a task. Click
      New. You can run a simple task, like say, first launching & then closing the command prompt window. This thus will wake your system at the pre-set time to carry out the task.
    • Select Action as : Start a program. To schedule a task that executes the command
      cmd.exe with command line arguments, copy-paste under Program/script
    /c “exit”

    6. Under Conditions tab, check on the Wake the computer to run this task check-box. Click
    OK and Exit Task Scheduler. Click OK
    and Exit Task Scheduler. Your computer will wake up from Sleep at the particular time.

    Kindly let us know if you need any further assistance with Windows. We are glad to assist you.

    Thank you.
     
    Harshavardhan Rathod, Oct 30, 2020
    #2
  3. Information on task Scheduling

    Hi,

    Thank you for posting the query on Microsoft Community.

    Please follow the suggestions below:

    By default, if it's time for your regularly scheduled backup and your computer is off, sleeping, or hibernating, Windows Backup skips the backup and waits for your next scheduled backup. However, if you want to automatically wake the computer
    to perform backup, you can use the task scheduler.

    To schedule a task to wake the computer before the scheduled backup time follow these steps:

    1. Click on Start button and type “Task Scheduler” in the start search box and press enter.

    2. Select the “Task Scheduler” from the menu and click on “Actions” and then select “Create task”.

    3. Click “Conditions” tab and make sure that “Wake the computer to run this task” is checked.

    Please get back to us with updated status, we will be happy to assist you.
     
    Amrita Bhattacharjee, Oct 30, 2020
    #3
  4. How do I configure Task Scheduler to run a task every time PC wakes up from sleep?

    Task Schedular won't run a scheduled task.

    I have been having no luck creating a working scheduled task in the Windows 10 Task Scheduler. This particular task is intended to wake the PC from sleep mode to later perform a automatic daily system restore point. The wakeup task does not work and has
    reported in the History tab that scheduled task was missed. I have checked and the PC is in sleep mode at the time the task is to run. After the task fails to run I can manually wake the PC from sleep and find that the start menu has been opened. I'm setting
    up this task with administrator privileges. I ran a troubleshooting process for power problems that I found in this forum. The troubleshooter did find two errors and corrected them. The corrections had no effect. I have successfully created two other scheduled
    task and they tested good. One task is to create a daily system restore point. The other is to shut down the PC after the other two are completed. Anyone had this problem and knows how it is corrected? Tnx

    Cliff S
     
    CliffordSanford, Oct 30, 2020
    #4
Thema:

How do I configure Task Scheduler to run a task every time PC wakes up from sleep?

Loading...
  1. How do I configure Task Scheduler to run a task every time PC wakes up from sleep? - Similar Threads - configure Task Scheduler

  2. Scheduled Task will not Wake PC

    in Windows 10 Gaming
    Scheduled Task will not Wake PC: I have a process to backup my laptop to my NAS. This is scheduled to run, with Task Scheduler, as 22:30 each evening. The process used to wake the PC and run successfully on my old laptop, but fails to wake my new HP Pavilion 15-eg3016na. Instead, the process runs as soon as...
  3. Scheduled Task will not Wake PC

    in Windows 10 Software and Apps
    Scheduled Task will not Wake PC: I have a process to backup my laptop to my NAS. This is scheduled to run, with Task Scheduler, as 22:30 each evening. The process used to wake the PC and run successfully on my old laptop, but fails to wake my new HP Pavilion 15-eg3016na. Instead, the process runs as soon as...
  4. Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation

    in Windows 10 Software and Apps
    Task scheduler wakes from sleep/hibernation but PC then goes back to sleep/hibernation: Hi,I have a HP EliteBook 840 G1 with Windows 10.I am looking to put my laptop to sleep/hibernation each night at a set time. Then the scheduler will wake the PC at a set time and run a .bat file. The Windows scheduler wakes the PC fine but after a few minutes it goes back to...
  5. Task Scheduler Configuration

    in Windows 10 BSOD Crashes and Debugging
    Task Scheduler Configuration: I've had a problem with my computer rebooting instead of Sleeping. In an effort to fix the issue, I noticed that the Task Scheduler is configured for Windows Vista, Windows Server 2008. When I try to change the configuration to Windows 10, an Username/Password pop-up...
  6. Pc sleeps every time i run specific tasks

    in Windows 10 Performance & Maintenance
    Pc sleeps every time i run specific tasks: Hi guys, Help please? I have noticed that my pcdell window 10 sleeps every time I perform specific tasks, for example; I was running a video compressor software, after I import the video and press the compress icon, it starts to compress the file for like five seconds and pc...
  7. Scheduled Tasks that run every hour

    in Windows 10 Performance & Maintenance
    Scheduled Tasks that run every hour: I notice that there are several tasks that are scheduled to run every day every hour. Most notably HP, Epson, & GoogleUpdateTaskMachine. This seems a little excessive & I wonder if anyone feels this should be changed to once a week or something similar, without causing any...
  8. Find "Wake up from sleep" Scheduled Tasks

    in Windows 10 Performance & Maintenance
    Find "Wake up from sleep" Scheduled Tasks: Other than going through each and every task in the task scheduler, is there a way to see those that are allowed to wake the machine while it is sleeping? My PC woke up this morning at 3:30 am. It then went back to sleep about ten minutes later. I've checked all of the normal...
  9. Scheduled Task not waking up PC.

    in Windows 10 Support
    Scheduled Task not waking up PC.: Hello, I have made a scheduled task with the option to wake up the pc from sleep state to run a program. When I tick the option Wake the computer to run this task the computer won't wake up at the given time. I have red in a forum of MS that this was a problem in the...
  10. Schedule wake up from sleep (not using task scheduler)

    in Windows 10 Support
    Schedule wake up from sleep (not using task scheduler): HiI have tried using windows task scheduler to sleep and wake up at different times but it does not work. I am using a Linx 1010 tablet. Windows 10Would anyone know if there any third party app, or any other way to do this task?Many thanks 92480