THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

John Paul Cook

Windows Not Sleeping All Night

Having a computer wake up when you don’t want it to wastes electricity and drains the battery on mobile devices. My desktop had been waking up at night, so I assumed it was some network traffic on my home network. I unchecked Allow this device to wake the computer on my network adapters.


Figure 1. Network adapter Power Management tab.

That didn’t solve the problem. I included the screen capture in Figure 1 because it could be part of the solution for someone else.

To identify the root cause instead of guessing, the System log was examined. As you can see, pressing the sleep button was putting the machine to sleep.


Figure 2. Timestamp of when the computer was put to sleep.

To figure out what was waking the machine up, the System log was checked to review all events following the sleep event.


Figure 3. System log showing what woke the computer up.

This is what requested the computer to wake up:

Wake Source: Timer - Windows will execute 'NT TASK\Microsoft\Windows\TaskScheduler\Regular Maintenance' scheduled task that requested waking the computer.

A Bing search provided more information:

To change this behavior, go to the Action Center and click on Change maintenance settings.


Figure 4. Automatic Maintenance section in the Action Center.

There are two options for modifying the Automatic Maintenance schedule. You can change the time or disable the ability for automatic maintenance to wake your device.


Figure 5. Options for controlling maintenance events waking the computer.

Published Sunday, May 18, 2014 11:05 AM by John Paul Cook

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS



Kevin said:

Thanks!  I've been having this same issue and figured it was just an issue with the mouse waking the computer.

May 18, 2014 3:55 PM

Norman said:

I don't mind the computer waking up but why doesn't it go back to sleep according to my sleep settings when all the tasks have finished and the PC is idle once again?

October 19, 2014 7:21 AM

chenyingying said:


May 6, 2018 11:08 PM

linying123 said:


May 10, 2018 8:11 PM

Leave a Comment


About John Paul Cook

John Paul Cook is a database and Azure specialist in Houston. He previously worked as a Data Platform Solution Architect in Microsoft's Houston office. Prior to joining Microsoft, he was a SQL Server MVP. He is experienced in SQL Server and Oracle database application design, development, and implementation. He has spoken at many conferences including Microsoft TechEd and the SQL PASS Summit. He has worked in oil and gas, financial, manufacturing, and healthcare industries. John is also a Registered Nurse currently studying to be a psychiatric nurse practitioner. Contributing author to SQL Server MVP Deep Dives and SQL Server MVP Deep Dives Volume 2. Connect on LinkedIn

This Blog



Privacy Statement