How To Fix a Windows 10 Computer That Keeps Waking Up

Computer wake up timer

Introduction

If your Windows 10 Computer keeps waking up from sleep, this step by step tutorial will help you fix your PC from waking up in the middle of the night or when stowed in your bag.

Step 1: Determine What Cause Your Computer To Wake up

The first step, before you fix this issue, consists of identifying whats keep your Windows 10 computer waking up.

You can figure out what caused your computer to wake up most recently by using this command:

Powercfg -lastwake

Click on the Windows Start menu, type “command”, then select “Command Prompt” application

In the command prompt session, type the following command:

powercfg /LASTWAKE
powercfg /lastwake

If the latest command doesn’t give you any clue, you can try this command:

powercfg /WAKETIMERS

The parameter WAKETIMERS is tells the command to displays the applications that keeps your computer awake.

Texte de remplacement généré par une machine :
PS C powercfg /waketimers 
Le minuteur configuré par [SERVICE] (SystemEvents8roker) expire à le 16/B4/2B2B. 
Raison 
. Windows exécutera la tâche planifiée « NT Orchestrator Start qui nécessitait la 
sortie de veille de l'ordinateur. 
Le minuteur configuré par [PROCESS] 
perienceHost.exe expire à le 16/B4/2B2B. 
PS

In this example, the scheduled task “Universal Orchestrator Start” woke the computer up from sleep.

You can also use the following command to generate a detailed system power report;

powercfg /SLEEPSTUDY

This report contains all the power state transitions (Active, Standby, Hibernate, and Shutdown) your computer experienced the past few days.

Texte de remplacement généré par une machine :
Power Estimation 
System Power State: 
Hibernate 
DURATION 
STATE 
Hibernate 
STATE 
Active 
ENTRY REASON 
Application API 
EXIT REASON 
Timer - Windows exécutera la tâche planifiée « NT 
Orchestrator Start » qui nécessitait la sortie de veille de 
l'ordinateur 
% CAPACITY 
REMAINING 
AT START 
20 
START TIME 
2020-04-16 16:57:42 
OS State Data 
Data obtained from the Event Viewer Logger_ 
System Power State: Active 
DURATION 
21 
START TIME 
2020-04-16 
ENERGY CHANGE 
CHANGE RATE 
Charge 
% LOW POWER STATE TIME 
% CAPACITY 
REMAINING 
AT START
System Power Report

Scroll down to the bottom and find the last hibernate stat. Read in the “EXIT REASON” column, the reason why your system woke up.

In the above example, the reason was:

Timer – will execute “NT TASK\Microsoft\Windows\UpdateOrchestrator\Universal Orchestrator Start” scheduled task that requested waking the computer.

It’s obvious the scheduled task Universal Orchestrator Start is what woke the computer up.

To disable the “Universal Orchestrator Start” task;

  1. Open Task scheduler as Administrator;
Run Task Scheduler as administrator

2. In the Task scheduler console select; Task Scheduler Library > Microsoft > Windows > UpdateOrchestrator

The Universal Orchestrator Start Task Wakes the computer when running
The Universal Orchestrator Start Task Wakes the computer when running.

Under the UpdateOrchestrator folder, select the”Universal Orchestrator Start” task, then click on the “Conditions” panel.

You need to uncheck the “Wake the computer to run this task” checkbox.

But if you do that you’are going to get an error message like this one:

Task Scheduler: An error has occurred for task Universal Orchestrator Start. Error message: The following error was reported: The supplied variant structure contains invalid data.

This error is generated because this task runs under System account privileges that are higher than the Administrator privileges.

So unless you run the task scheduler with the system account, you can’t disable this option.

Step 3: Run Task Scheduler Under The System Account

To run a program under the system account, you can use the PSExec tool or you can use the NSudo tool.

1. Use PSExec Tool

  • First download PSExec tool;
  • Open a command prompt as Administrator;
  • Change the current directory to the “PSExec” directory;
  • Type the following command to open a new command prompt with the System account privileges:

PsExec.exe -si cmd.exe

PsExec.exe -si cmd.exe
Run PsExec.exe -si cmd.exe
  • In the new command prompt window, type the “whoami” command, to ensure you are running it with the System account privileges:
whoami command
whoami command

one you ensure that you running the command prompt as the Local System user, then type “taskschd.msc” to open task scheduler and uncheck the “Wake the computer to run this task” checkbox.

2. Use Nsudo Tool

If you are not comfortable typing commands, then you can use NSudo, a graphic tool that allows you running programs with System account privileges.

  • Download NSudo;
  • Extract the content of the ZIP file to a location of your choice;
  • Go to the following folder: \NSudo Launcher
  • Right-click on NSudo.bat and choose Run as administrator
  • In the user list, select “System“;
  • Check “Enable All Privileges” checkbox;
  • In the Open zone, type “taskschd.msc” to open the task scheduler;
Open the task scheduler usign NSudo tool

On the task scheduler, repeat these steps to uncheck the “Wake the computer to run this task” checkbox.

Please leave a comment below and share this article on your preferred social media platform, so that other persons can benefit.

Share this article

Leave a Reply