131

I am not turning laptop off, but rather putting into hibernation, as it starts much faster and I can continue working without starting all apps again.

It was working long time from Windows XP to Windows 8.1.

However now (after upgrade to Windows 10), when I just take my laptop out of the bag after a travel, it was quite hot. I've realized that it is turned on.

In the event log I have found that it was installing updates and before that there was the following log:

The system has returned from a low power state.

Sleep Time: ‎2015‎-‎08‎-‎16T12:55:18.180075900Z Wake Time: ‎2015‎-‎08‎-‎16T12:55:17.852758500Z

Wake Source: Unknown, but possibily due to timer - Windows will execute 'NT TASK\Microsoft\Windows\UpdateOrchestrator\Reboot' scheduled task that requested waking the computer.

When I located the task above in the task scheduler, it has trigger in that time, however the "last run time" is day before. So I do not know what to believe "last run time" or the wake source from the event above?

How to find out what is waking the computer from the hibernation (it is possible?) and how to prevent it?

fixer1234
  • 28,064
TN.
  • 2,090

10 Answers10

104

This has worked for me so far. Go to:

Control Panel\Hardware and Sound\Power Options\Edit Plan Settings

Click "Change advanced power settings"

Go to "Sleep->Allow wake timers" and change the setting to Disable.

power options screenshot 1

UPDATE: As Erik pointed out, there can be two options:

power options screenshot 2 with 2 options

Disable them both.

UPDATE #2:

In addition to wake timers, peripheral devices can also wake your computer. See Rosdi's answer for network interfaces. It reminded me of something I had to change recently as my computer was waking again when peripherals were attached. First I disconnected the mouse, but it turned out to be the keyboard.

Open the Device Manager and expand Keyboards - or whatever your problematic device category is - and find the suspect, e.g. "HID Keyboard Device". Right-click that and select Properties, then go to the Power Management tab and uncheck "Allow this device to wake the computer".

Device properties Power Management tab

87

On WIN 10 there is an option in Local Group Policy Editor to set up it easily:

  1. Search: Local Group Policy Editor (you can launch gpedit.msc)
  2. Navigate to: Computer Configuration / Administrative Templates / Windows Components / Windows Update
  3. Double click on: Enabling Windows Update Power Management to automatically wake up the system to install scheduled updates and set it to "Disabled".

Figure for Local Group Policy Editor setting:

enter image description here

xxxbence
  • 1,029
44

After upgrading to Windows 10, the computer in my bedroom kept waking me up at 3AM. Disabling Wake the computer on the Microsoft\Windows\UpdateOrchestrator\Reboot scheduled task didn't help. Windows turns the flag back on periodically. Even disabling "Disable wake timers" in Power Options didn't help. The UpdateOrchestrator kept orchestrating midnight alarms.

As a solution I've added a powershell script that removes wake settings every hour.

  1. To allow running powershell scripts: run powershell as administrator, and run:

    Set-ExecutionPolicy RemoteSigned

  2. Create a file called "disable_wakejobs.ps1" that contains one line of code:

    Get-ScheduledTask | ? {$_.Settings.WakeToRun -eq $true -and $_.State -ne "Disabled"} | % {$_.Settings.WakeToRun = $false; Set-ScheduledTask $_}

  3. Open Task Scheduler and create a scheduled task.

  4. In the "General" tab, set the user account to "SYSTEM" user (or you'll have to update a saved password every time you change your own password.)
  5. In the "Triggers" tab, create a trigger that runs the job daily and repeat every hour.
  6. In the "Actions" tab, create an action to "Start a program", with "Program/script" set to "PowerShell.exe", and arguments -Command "c:\tools\disable_wakejobs.ps1" (change the path to where you stored disable_wakejobs.ps1 in step 2.)

The PowerShell commands come from this blog post by Reidar Johansen.

Andomar
  • 1,511
5

I am using Wake On LAN (WOL) feature on my computer so that I can wake up my computer remotely if I need to access it while I am away.. in order for WOL to work is that I have to allow my network card to wake the computer when I send the WOL magic packet.

This is somehow causing my computer to wake up randomly for no apparent reason. To know whether this is causing your computer to wake up randomly, type this command in the command prompt:

powercfg -lastwake

enter image description here

If you see something about your network card (as of mine Realtek PCIe).. then you need to go to your network card properties setting and make sure the Only allow a magic packet to wake the computer check box is checked (mine wasn't):

enter image description here

Then pray to your God...

Rosdi
  • 936
5

This should solve your problem:

  1. Search Task Scheduler
  2. Navigate to Task Scheduler Library\Microsoft\Windows\UpdateOrchestrator\Reboot
    Note: Reboot is just a file, but you need to go inside all those folders
  3. Right Click Properties then click Conditions
  4. Uncheck Wake the computer to run this task
HMTK
  • 75
2

I ran into problem where UpdateOrchestrator re-enabled itself again. This ofcourse caused my computer to wake up from sleep mode by itself (seriously snap you microsoft for also waking me up in the middle of the night). Found some info on reddit that seems to solve it.

Open powershell:

  • run: Get-ScheduledTask | where {$_.settings.waketorun}

Open cmd:

  • Run SCHTASKS /Change /TN "Microsoft\Windows\UpdateOrchestrator\Reboot" /DISABLE
  • Run icacls "%WINDIR%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot" /inheritance:r /deny "Everyone:F" /deny "SYSTEM:F" /deny "Local Service:F" /deny "Administrators:F".

This will prevent the task from being enabled again. This assumes you're running an English version of Windows - translate the user names as necessary or find the SIDs, if required.

Original post on reddit. https://www.reddit.com/r/Windows10/comments/48rg7x/is_there_any_way_to_stop_updateorchestrator_for/

ColacX
  • 1,571
1

Applying Andomar's solution, I also got the error:

  • Set-ScheduledTask : The parameter is incorrect. At C:\Users\Filip\scripts\disable_wakejobs.ps1:1 char:123 + ... Disabled"} | % {$.Settings.WakeToRun = $false; Set-ScheduledTask $} + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (PS_ScheduledTask:Root/Microsoft/...S_ScheduledTask) [Set-ScheduledTask], CimException + FullyQualifiedErrorId : HRESULT 0x80070057,Set-ScheduledTask

In my case this was due to a task which cannot be edited (AUSessionConnect within WindowsUpdate to be precise). So I edit the responsible task directly (Reboot within UpdateOrchestrator). The corresponding disable_wakejobs.ps1 file looks like this (for how to use that file, check out Andomar's answer):

Get-ScheduledTask -TaskName "Reboot" | % {$_.Settings.WakeToRun = $false; Set-ScheduledTask $_}

To test the script manually ensure you run it from an elevated PowerShell instance (Run as Admin).

fixer1234
  • 28,064
jochen
  • 11
1

Based on my experience, you can configure the auto update policy instead as a workaround:

  1. Open Local Group Policy Editor (gpedit.msc)
  2. Go to: Computer Configuration / Administrative Templates / Windows Components / Windows Update
  3. Modify "Configure Automatic Updates", you can enable it and set it as "2 - Notify for download and notify for install" or "3 - Auto download and notify for install"

This way the system doesn't even have the chance to start installing updates, which results in waking up and rebooting in most cases. In addition, you have the control over when to update.

nullstd
  • 11
  • 1
1

That appears to be the system maintenance task running. If so, you might try disabling system maintenance.

WIN+R control search for "maintenance" in the search box, select "Change Automatic Maintenance settings".

Clear the "allow scheduled maintenance to wake up my computer at the scheduled time".

See if that helps remove the issue. It's going to be a lot more reliable than some of the other mechanisms proposed.

0

windows 10 has two things you can diable for wake timers

when you go into advanced power setting I found under wake timers you will see disable wake timers then under that you will see an important wake timer, disable that one too.

alan
  • 1