Stay off

How to prevent PC from waking up on Windows 10

If your computer is waking up randomly, it could be a scheduled task or peripherals, use these steps to fix the problem on Windows 10.

Keep PC from waking up from sleep on Windows 10

On Windows 10, the ability to hibernate or sleep your computer are excellent features to quickly resume where you left off at a later time, and even to save energy. However, using these features can also cause the system to constantly wake up automatically in the middle of the night or when you’re not using it.

The operating system includes multiple power states, including sleep, hibernation, and hybrid, when you use any of these features, even though the computer isn’t functioning, it’s still able to wake up automatically to perform scheduled tasks, and peripherals, such as network card, mouse, keyboard, and others can also switch the power state to fully functional.

If your computer keeps waking up randomly, Windows 10 includes the tools to find out the reason of the problem and to disable the wake timers per device, task, or globally.

In this guide, you’ll learn the steps to keep Windows 10 from waking up automatically.

How to determine what is waking up PC on Windows 10

To determine if a device or scheduled task is requesting to wake up computer, use the steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to find out devices allowed to wake up the computer and press Enter:

     powercfg /devicequery wake_armed

    powercfg devicequery wake_armed command
    powercfg devicequery wake_armed command
  4. Type the following command to determine the device waking up the computer and press Enter:

    powercfg /lastwake

    powercfg lastwake command
    powercfg lastwake command
  5. Type the following command to find out the scheduled tasks requesting to wake up the computer and press Enter:

    powercfg /waketimers

    powercfg waketimers command
    powercfg waketimers command
  6. Confirm whether a device and task are waking up your computer.

Once you complete the steps, you’ll have an understanding of what’s waking up your computer at night or when you’re not using it.

How to disable wake timers on Windows 10

There at least two solutions to prevent the computer from waking up accidentally. You can disable the device or scheduled task individually, or you can disable all wake timers on Windows 10. The steps below will explain the steps to complete both scenarios.

Stop device from waking up computer

If you have determined a device (network card, keyboard, mouse, etc.) is waking up the computer every night, you can disable the power on feature from Device Manager using these steps:

  1. Open Start on Windows 10.

  2. Search for Device Manager and click the top result to open the app.

  3. Expand the branch with device you want to configure.

  4. Right-click the device and select the Properties option.

    Device Manager properties option
    Device Manager properties option
  5. Click the Power Management tab.

  6. Clear the Allow this device to wake the computer option.

    Device Manager allow this device to wake the computer option
    Device Manager allow this device to wake the computer option
  7. Click the OK button.

Once you complete the steps, the device will no longer wake the computer in the middle of the night.

If you don’t want any device accidentally waking up the computer, repeat the above steps for every device allowed to start the computer.

Stop scheduled tasks from waking up computer

If you the problem is a scheduled task, you’ll need to modify or disable task to prevent the computer from waking up.

To stop a scheduled task from requesting to wake up computer, use these steps:

  1. Open Start.

  2. Search for Task Scheduler and click the top result to open the app.

  3. Navigate to the task causing the random wake up.

    Quick tip: The path of the task can be found in the output of the powercfg /waketimers command that you run earlier.
  4. Right-click the task and select the Properties option.

    Scheduled task waking up computer on Windows 10
    Scheduled task waking up computer on Windows 10
  5. Click the Conditions tab.

  6. Clear the Weak the computer to run this task option.

    Disable wake up computer option on scheduled task
    Disable wake up computer option on scheduled task
    Quick tip: If you want the task to run a different time, you can modify the schedule from the “Triggers” tab.
  7. Click the OK button.

After you complete the steps, the task will no longer wake up the computer.

Disable system scheduled task

If you’re not able to save the changes of the scheduled task as result of not enough permissions, you’ll need to use the Microsoft PsExec tool to disable the task using Command Prompt.

  1. Open Sysinternals website.

  2. Click the Download PsTools link and download the file to your computer.

    Download Sysinternals PsTools
    Download Sysinternals PsTools
  3. Open the zip folder with File Explorer.

  4. Select the PsExec.exe file.

  5. Click the Copy option from the “Home” tab.

    Extract PsExe
    Extract PsExe
  6. Click on This PC from the left pane.

  7. Open the Local Disk drive.

  8. Click the Paste option from the Home tab.

  9. Open Start.

  10. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  11. Type the following command to navigate to the root of the drive and press Enter:

    cd \
  12. Type the following command to start the tool and press Enter:

    psexec.exe /s cmd.exe
  13. Type the following command to disable the task waking up the computer and press Enter:

    schtasks /change /tn "PATH\TO\TASK" /disable

    In the command, make sure to change PATH\TO\TASK with the path for the scheduled task you determined earlier using the powercfg /waketimers.  

    This example disables the Universal Orchestrator Start task:

    schtasks /change /tn "\Microsoft\Windows\UpdateOrchestrator\Universal Orchestrator Start" /disable

    Disable scheduled task waking up PC command on Windows 10
    Disable scheduled task waking up PC command on Windows 10

Once you complete the steps, Windows 10 should no longer wake up your computer. If you found multiple tasks waking up the computer, you may need to repeat the steps to disable those scheduled tasks as well.

Stop automatic maintenance from waking up computer

Windows 10 includes a feature to perform automatic maintenance, which can cause the computer to wake up automatically (usually at middle of the night).

To prevent automatic maintenance from waking up device, use these steps:

  1. Open Control Panel.

  2. Click on System and Security.

  3. Click on Security and Maintenance.

  4. Expand the Maintenance section.

  5. Under the “Automatic Maintenance” section, click the Change maintenance settings option.

    Change maintenance settings on Windows 10
    Change maintenance settings on Windows 10
  6. Clear the Allow scheduled maintenance to wake my computer at the scheduled time option.

    Disable wake up timer for Windows 10 automatic maintenance
    Disable wake up timer for Windows 10 automatic maintenance
  7. (Optional) Change the maintenance schedule time as needed.

  8. Click the OK button.

After you complete the steps, the computer will no longer wake up to perform an automatic maintenance.

Disable all wake timers on Windows 10

If you want to prevent any scheduled task or device from waking up your computer, you can disable all wake timers globally.

To disable wake timers on Windows 10, use these steps:

  1. Open Settings.

  2. Click on System.

  3. Click on Power & sleep.

  4. Under the “Related settings” section, click the Additional power settings option.

    Additional power settings option on Windows 10
    Additional power settings option on Windows 10
  5. Click the Change plan settings option for the current power plan option.

    Power options change plan settings option
    Power options change plan settings option
  6. Click the Change advanced power settings option.

    Change advanced power settings
    Change advanced power settings
  7. Expand the Sleep branch.

  8. Expand the Allow wake timers branch.

  9. In the “Setting” field, select the Disable option.

    Disable all wake timers on Windows 10
    Disable all wake timers on Windows 10
  10. Click the Apply button.

  11. Click the OK button.

Once you complete the steps, device nor scheduled task will no longer be able to run while the computer is asleep or hibernating preventing the computer from waking up automatically.