WiseCleaner Think Tank
Encounter difficult computer problems?
All about maintenance and optimization of your Windows System.
Oct 30, 2026
When a Windows 11 computer enters Sleep mode, a slight mouse movement or accidental keyboard press can wake it up. This may be inconvenient when the computer is not in use, especially if the mouse is easily moved or a key is accidentally pressed.
Fortunately, Windows 11 allows users to control which devices can wake the computer. This article introduces several ways to disable keyboard or mouse wake-up permissions in Windows 11.
Device Manager provides a straightforward way to manage whether a connected device can wake the computer.
Right-click the Start button and select Device Manager, or press Win + X and choose it from the list.
Expand Mice and other pointing devices. Right-click the mouse and select Properties.
Navigate to the Power Management tab and uncheck the box labeled Allow this device to wake the computer. Click OK to save.
Expand the Keyboards section, right-click your keyboard, go to Properties > Power Management, and uncheck the same box.
Windows includes the Powercfg command-line utility, which can manage the devices allowed to wake the computer.
Press Win + S, type cmd, and select Run as administrator to open Command Prompt.
Type the following command and press Enter to display devices currently allowed to wake the computer:
powercfg -devicequery wake_armed
Type the following command and press Enter:
powercfg -devicedisablewake "Device Name"
Replace "Device Name" with the exact name as it appears in the list, such as "HID Keyboard Device" or "HID-compliant mouse".
After running the disable command, you can re-run powercfg /devicequery wake_armed to confirm the device has been removed from the list.
Windows 11 provides several ways to control whether a keyboard or mouse can wake the computer from Sleep mode. Device Manager is the simplest option for most users, while Command Prompt and PowerShell offer convenient alternatives. By disabling wake-up permission for the selected devices, accidental mouse movements or keyboard presses will no longer wake the computer. If necessary, the setting can be restored later by enabling Allow this device to wake the computer or using the corresponding Powercfg command.
wisecleaner uses cookies to improve content and ensure you get the best experience on our website. Continue to browse our website agreeing to our privacy policy.
I Accept