Published by


Brink's Avatar
Administrator

Posts: 19,014

Show Printable Version 


How to Allow or Prevent Devices to Wake Computer in Windows 10

information   Information
This tutorial will show you how to allow or prevent devices to wake your Windows 10 PC from a sleep or hibernate state.

You must be signed in as an administrator to be able to allow prevent devices to wake the computer.


CONTENTS:
  • Option One: To Allow or Prevent a Device to Wake Computer in Command Prompt
  • Option Two: To Allow or Prevent a Device to Wake Computer in Device Manager





Allow or Prevent Devices to Wake Computer in Windows 10 OPTION ONE Allow or Prevent Devices to Wake Computer in Windows 10
To Allow or Prevent a Device to Wake Computer in Command Prompt

1. Open an elevated command prompt.

2. Do step 3 (allow) or step 4 (prevent) below for what you would like to do.


 3. To Allow Device to Wake the Computer

A) Type the command below into the command prompt, and press Enter. (see screenshot below)
Note   Note
This will give you a list of all devices that support waking the computer from any sleep state.

Make note of the device name (ex: "HID Keyboard Device") you want to allow to wake the computer.


powercfg -devicequery wake_from_any

Click image for larger version. 

Name:	Devices_able_to_wake_computer.png 
Views:	79 
Size:	126.4 KB 
ID:	100644

B) Type the command below into the command prompt, and press Enter. You can close the command prompt when finished. (see screenshot below)

powercfg -deviceenablewake "Device Name"

Note   Note
Substitute Device Name in the command above with the actual name of the device.

For example: powercfg -deviceenablewake "HID Keyboard Device"


Click image for larger version. 

Name:	Enable_device_to_wake_computer.png 
Views:	61 
Size:	12.3 KB 
ID:	100647


 4. To Prevent Device to Wake the Computer

A) Type the command below into the command prompt, and press Enter. (see screenshot below)
Note   Note
This will give you a list of all devices that are able to wake the computer.

Make note of the device name (ex: "HID Keyboard Device") you want to prevent to wake the computer.


powercfg -devicequery wake_armed

Name:  Devices_allowed_to_wake_computer.png
Views: 2098
Size:  15.9 KB

B) Type the command below into the command prompt, and press Enter. You can close the command prompt when finished. (see screenshot below)

powercfg -devicedisablewake "Device Name"

Note   Note
Substitute Device Name in the command above with the actual name of the device.

For example: powercfg -devicedisablewake "HID Keyboard Device"


Click image for larger version. 

Name:	Disable_device_to_wake_computer.png 
Views:	49 
Size:	12.5 KB 
ID:	100646





Allow or Prevent Devices to Wake Computer in Windows 10 OPTION TWO Allow or Prevent Devices to Wake Computer in Windows 10
To Allow or Prevent a Device to Wake Computer in Device Manager

1. Open Device Manager (devmgmt.msc).

2. Expand open the device category (ex: Keyboards), and double click/tap on the device (ex: "HID Keyboard Device") that you want to allow or prevent to wake the computer. (see screenshot below)

Name:  Device_Manager-1.png
Views: 2110
Size:  35.3 KB

3. Check or uncheck the Allow this device to wake the computer box for what you want, and click/tap on OK. (see screenshot below)

Name:  Device_Manager-2.png
Views: 2104
Size:  18.6 KB

4. When finished, you can close Device Manager if you like.


That's it,
Shawn