Enroll Course

100% Online Study
Web & Video Lectures
Earn Diploma Certificate
Access to Job Openings
Access to CV Builder



Online Certification Courses

How To Prevent Your Windows Computer From Waking Up Randomly

How to Prevent Your Windows Computer From Waking Up Randomly. 

 

Check for Wake Devices in the Command Prompt

To figure out why your computer randomly turns on, you can first use a few Command Prompt commands to get an idea of what’s going on.

To open a Command Prompt, right-click on the Start button (or press Win + X) to open the power user menu. There, select Command Prompt (or Windows PowerShell; either will work). Enter the following command:

powercfg –lastwake

This will show you the last device that woke your PC up from sleep. if you see something like Wake History Count – 0 as in the screenshot below, Windows doesn’t have a record of what it was. This can happen if you just rebooted your PC.

Next, you should try the following command:

powercfg –devicequery wake_armed

This one displays all the devices that are allowed to wake your PC from sleep. It’s common to see your mouse and keyboard listed here.

Review More Sleep Info in Event Viewer

For a bit more information on the latest sleep event, you can open the Event Viewer in Windows. Search for it in the Start menu for easy access; once it’s open, select Windows Logs > System in the left sidebar. From there, click Filter Current Log in the right sidebar.

In the filter window, click inside the Event sources box and select Power-Troubleshooter. You can use the Logged dropdown at the top to set a time frame if you want, then hit OK.

After this, you’ll see a list of events showing when Windows woke up from sleep. Select one to get more info about it, including exactly when it happened. Check the Wake Source inside the box to see what caused it. This may say Unknown, which obviously isn’t much help. But if there’s a specific cause here, you’ll know what to look for going forward.

Use the Device Manager to Disable Wake-Ups

Using the information you gained from the Command Prompt and Event Viewer, you can now hopefully prevent your computer from turning on during sleep mode through the Device Manager. To open it, right-click the Start button (or press Win + X) and choose Device Manager from the list.

This utility shows all devices connected to your PC, but not all of these have the ability to wake up your computer. You’ll want to check the ones revealed by the commands above. Devices under Keyboards, Mice and other pointing devices, and Human Interface Devices are the most common culprits.

Expand those lists and double-click on an entry to open its Properties window. If there’s more than one entry, you may have to check each one individually. Unfortunately, devices don’t always include their model name, and you’ll likely see multiple devices if you’ve connected more than one in the past.

In the Properties window for your device, you should see a Power Management tab at the top. Select this, then uncheck the Allow this device to wake the computer box and hit OK. This prevents your mouse, keyboard, or other devices from waking up Windows from sleep.

Repeat this process for any devices that you also want to disable. While you most likely won’t bump your keyboard by accident (unless your pet activates it), the mouse is a much more common problem. 

Stop Network Wake-Ups

While poking around in the Device Manager, you should be aware of another common culprit: your computer could be waking up from its network connection.

Most modern systems include a feature called Wake-On-LAN. This allows you to turn on your computer from anywhere in the world.

If you don’t care about this feature, try disabling it to see if your sleep issue goes away. In the Device Manager, expand the Network adapters section and look for your connection adapter. This feature is almost always used with wired connections, so look for an entry containing Ethernet Connection or similar.

In its Properties window, switch to the Power Management tab again. Depending on your adapter, you may have a simple Allow this device to wake the computer box uncheck it if so. However, other network adapters will have a list of options. In the below example, unchecking each of the boxes under Wake on LAN will disable the feature.

Turn Off Scheduled Task Wake Timers

The Windows Task Scheduler lets you set routines to run automatically on your system. While this is convenient, some tasks are set up to wake the computer so they can run. Even if you never set a task up manually, there’s a chance that some app is waking up Windows so it can check for updates or similar.

You can dig through the Task Scheduler by hand, but that’s not necessary. Instead, toggling a simple option in your power plan will disable tasks from waking up Windows. To access this, head to Settings > System > Power & sleep. On the right side, click Additional power settings to open the Control Panel page for Power Options

There, click the Change plan settings link next to your current power plan. On the resulting page, select Change advanced power settings to open a new window. Finally, expand the Sleep item, followed by Allow wake timers. Change this to Disable and hit OK. Now, Windows will no longer wake up for scheduled events. 

Corporate Training for Business Growth and Schools