How to stop your computer with Windows 10 waking up during the night?

How to stop your computer with Windows 10 waking up during the night?

It sounds like the computer is a small baby but bear with me

It happens quite often. You put your computer to sleep in the evening and, in the morning, it’s awake. And you have no idea why.

But wait, there is a way to know what woke the computer up! Open your favorite command line tool and run this: powercfg /lastwake. You should see exactly what woke your computer up. In my case, this is what I got:

The UpdateOrchestrator, or Update Orchestrator Service, is the services that will coordinate the Windows Update for your computer. You can read more about it here.

Now that we know the culprit, we can work on the solution. But before we start, you will need to download the PsExec tool. This tool is going to help you to acquire the necessary permissions to disable what we need to disable. Once you downloaded, you should extract everything into a folder. For example: C:\tools\psexec.

Now we can start:

  1. Open your command line in administrator mode and navigate into the folder you extracted PsExec;
  2. Run the following command:
    1. Cmd: psexec.exe -i -s %windir%\system32\mmc.exe /s taskschd.msc
    2. Powershell: .\psexec.exe -i -s $env:windir\system32\mmc.exe /s taskschd.msc
  3. Once the Task Scheduler opens, navigate to Task Scheduler Library > Microsoft > Windows > UpdateOrchestrator
  4. Double click the item on the list and go to the tab Conditions
  5. Uncheck “Wake the computer to run this task
  6. Click OK
  7. Repeat for all items you need/want

That’s it. A relatively simple solution for a very annoying problem.