When not in use, putting your Windows PC to sleep is an excellent way to preserve its battery life. You can wake your computer at any time by simply wiggling the mouse, pressing the power button, or pressing a key on your keyboard.

Windows gives you complete control over devices that can wake your computer from a sleep state. In this guide, we will discuss how you can manage those devices.

How to Check Which Devices Are Capable of Waking Your Windows PC From Sleep Mode

Not every device connected to your system can wake Windows from sleep mode. You can use Command Prompt or Windows PowerShell to determine which of your devices supports waking the computer.

  1. Press Win + S to open the search menu.
  2. Type in Windows PowerShell and select Run as administrator.
  3. Select Yes when the User Account Control (UAC) prompt appears.
  4. Type the following command and press Enter to view a list of devices on your system that can wake Windows from any sleep state.
            powercfg -devicequery wake_from_any
        
    Devices That Can Wake Windows From Sleep Mode

On this list, you'll see devices like your keyboard, mouse, network adapter, and more.

How to Check Which Devices Are Allowed to Wake Your Windows PC From Sleep Mode

Command Prompt or PowerShell can also tell you which devices are permitted to wake your Windows PC from sleep mode. Here's how to find out.

  1. Open Command Prompt or Windows PowerShell on your PC.
  2. Type the following command and press Enter to view a list of devices that are allowed to wake your computer from sleep mode.
            powercfg -devicequery wake_armed
        
    Devices Are Allowed to Wake Your Windows PC From Sleep Mode

How to Find Out What Woke Your Windows PC From Sleep Mode

Many times, you may find that your Windows computer wakes from sleep mode on its own. Often, it's one of the connected devices or processes that causes your computer to wake up. Windows can tell you exactly what woke your computer from sleep mode.

  1. Press Win + R to open the Run dialog.
  2. Type cmd in the box and press Ctrl + Shift + Enter to launch Command Prompt with admin rights.
  3. Input the following command and press Enter.
            powercfg -lastwake
        
    Check What Woke Windows From Sleep

Once you run the above command, Windows will tell you which device or process woke your computer from sleep mode.

If you see something like Wake History Count - 0, it means that Windows doesn't have a record of wake history. This can happen if you've recently rebooted your computer.

How to Allow or Deny a Device Permission to Wake Your Windows PC From Sleep Mode

Once you know which devices are waking up your computer without your consent, you can take the necessary steps to prevent them from doing so.

To allow or deny a device permission to wake your computer:

  1. Press Win + X to open the Power User menu.
  2. Select Device Manager from the list.
  3. Locate the device you want to configure. Right-click on it and select Properties.
  4. In the Properties window, switch to the Power Management tab.
  5. Check or uncheck the Allow this device to wake the computer checkbox to allow or disallow the permission.
  6. Click OK to save the changes.
    Allow or Disallow Device to Wake Computer on Windows

You can repeat the above steps to configure power management settings for more devices if you want.

Aside from your devices, your network connections, scheduled tasks, and background wake timers can also wake Windows from sleep mode. If you want to stop that from happening, check our guide on how to prevent your Windows computer from waking up randomly.

Manage Your Computer’s Sleep

Now you know what devices can wake your computer from a sleep state and how to prevent them from doing so. That said, putting your computer in sleep mode may not always be the best option for your laptop. Sometimes, it’s better to shut it down completely.