Allow or Prevent Devices to Wake Computer in Windows 10  

Page 1 of 12 12311 ... LastLast
    Allow or Prevent Devices to Wake Computer in Windows 10

    Allow or Prevent Devices to Wake Computer in Windows 10

    How to Allow or Prevent Devices to Wake Computer in Windows 10
    Published by Category: Performance & Maintenance
    04 Mar 2021
    Designer Media Ltd



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


    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






    OPTION ONE

    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)

    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

    Allow or Prevent Devices to Wake Computer in Windows 10-devices_able_to_wake_computer.png

    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"

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

    For example: powercfg -deviceenablewake "HID Keyboard Device"

    Allow or Prevent Devices to Wake Computer in Windows 10-enable_device_to_wake_computer.png


    4 To Prevent Device to Wake the Computer

    A) Type the command below into the command prompt, and press Enter. (see screenshot below)

    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

    Allow or Prevent Devices to Wake Computer in Windows 10-devices_allowed_to_wake_computer.png

    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"

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

    For example: powercfg -devicedisablewake "HID Keyboard Device"

    Allow or Prevent Devices to Wake Computer in Windows 10-disable_device_to_wake_computer.png






    OPTION TWO

    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)

    Allow or Prevent Devices to Wake Computer in Windows 10-device_manager-1.png

    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)

    Allow or Prevent Devices to Wake Computer in Windows 10-device_manager-2.png

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


    That's it,
    Shawn






  1. Posts : 10
    Windows 10
       #1

    wake up sleep laptop with keyboard / touchpad


    Dear Mr. Brink,
    I have Asus Zenbook Flip UA360UAK, I need to enable a setting on my Touch Pad and Keyboard driver/device properties, which should be located under the 'Power Management' tab. However, there is no Power Management tab. Now, I can wake up my sleep laptop with my wireless mouse and laptop power button .
    Note :
    In device manager , keyboard device :
    HID Keyboard device and PC/AT Enhanced PS/2 Keyboard(101/102) Key (both no Power Management Tab)
    Please help me.. Thanks in Advance
      My Computer


  2. Posts : 64,502
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello @desainkilang, and welcome to Ten Forums. :)

    Double check your BIOS/UEFI power settings to see if you may have a setting to enable for a "Boot from keyboard" type setting.

    In addition, you might see if you may be able to use Option One to enable waking with the keyboard.
      My Computers


  3. Posts : 10
    Windows 10
       #3

    unfortunately, my bios laptop have not "Boot from keyboard" type setting and if I try to type command as an Admin : powercfg -deviceenablewake "HID Keyboard Device" , respon : You do not have permission to enable or disable device wake
      My Computer


  4. Posts : 64,502
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4
      My Computers


  5. Posts : 10
    Windows 10
       #5

    only a wireless mouse and power button

    Allow or Prevent Devices to Wake Computer in Windows 10-image.png
      My Computer


  6. Posts : 64,502
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    Just to verify, did you run the command below in an elevated command prompt?

    powercfg -deviceenablewake "HID Keyboard Device"


    Open Elevated Command Prompt in Windows 10 - Windows 10 General Tips Tutorials
      My Computers


  7. Posts : 10
    Windows 10
       #7

    is it right Mr. Brink ?

    Allow or Prevent Devices to Wake Computer in Windows 10-image.png
      My Computer


  8. Posts : 64,502
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    Try opening an elevated command prompt using Option 3, 4, or 5 below, and then running the command.

    Open Elevated Command Prompt in Windows 10 - Windows 10 General Tips Tutorials
      My Computers


  9. Posts : 10
    Windows 10
       #9

    Allow or Prevent Devices to Wake Computer in Windows 10-image.png

    still this ... You do not have permission.....
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 05:28.
Find Us




Windows 10 Forums