Share via


How do i disable the "Allow the computer to turn off this device to save power" setting, as a default setting within Windows 10?

Question

Wednesday, August 1, 2018 9:44 AM | 1 vote

Dear Microsoft Technet Community (aka Microsoft Geniuses, IT techo's, anyone),

I'm hoping that someone out there within the Microsoft TechNet community will be able to assist me with my issue.

Basically I am trying disbaled the "Allow the computer to turn off this device to save power" setting completely on a Windows 10 pc.

I want it to be turned off/unticked for every single USB Hub, PnP device, Input devices, Camera etc. 

I not only want to untick/turn off this annoying setting, but am wondering if its possible, that whenever a new USB Hub, PnP device, Input Device, Camera etc, is plugged in, it will automatically default the "Allow the computer to turn off this device to save power" setting to OFF/UNTICKED!!!

I am hoping that there is some registry settings i can change, or there is a powershell script someone can point me to, or provide me, that will do this magic.

Looking forward to your responses. Waiting in anticipation.

Thank you,

Elvis G

All replies (4)

Wednesday, August 1, 2018 11:46 AM | 1 vote

It's really messy and not well documented...

Also, this setting is not preserved by the Windows in-place upgrade process, so you need extra stuff to put these settings back afterwards.

In our case we've only looked at this for ethernet adapters, in order to ensure that wake-on-lan works properly. For these, the relevant keys start here:

HKLM\SYSTEM\CurrentControlSet\Control\Class\4D36E972-E325-11CE-BFC1-08002bE10318}

and then there are sub-keys for each network card, numbered 0000, 0001 etc, depending how many adapters you have.

Inside each of these is a value called PnpCapabilities. This is a DWORD with a number of settings packed into it, and the meanings of these bits are not documented as far as I'm aware. There's a script here with some of the values listed:

https://community.spiceworks.com/scripts/show/240-script-to-enable-wake-on-lan-windows?page=2

... but I would recommend keeping an eye on the value in regedit and seeing how it changes as the various boxes are checked.

I'm not aware of a way to change the default behaviour, but it might be possible to come up with something that runs as a scheduled task that sets the values you want.


Thursday, August 2, 2018 8:00 AM | 1 vote

Hi,

Agree with Mike, it can be achieved by editing registry. 

However, you have to get the class guid of the device, then locate the class guid in registry.

HKLM\SYSTEM\CurrentControlSet\Control\Class

Then change the value of the key "PnPCapabilities" to 0x00000018.

If you want to apply to multiple computers, you can deploy it via GPP.

To locate the guid of a specific device, you can view it in UI as below, but for script, you'd better contact script center

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, August 3, 2018 1:48 AM

If you have any problems, please feel free to let me know.

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Sunday, November 11, 2018 4:36 PM

I've been having this same issue with my Razer Diamondback mouse.

Every time I step away from the pc for 60 seconds or more, the mouse disconnects. It can only handle a few disconnects before nothing I do will help and I need to reboot in order to use it.

The default setting for "allow the computer to turn off this device to save power" will sometimes randomly change for the mouse in Human Interface Devices (Device Manager), and/or a new USB input device will be added to Device Manager with the default power-turn-off setting ticked.

I've tried using various USB ports but it doesn't help. I tried the solution mentioned above but there is no "PnPCapabilities" value for either the mouse or its HID listing.

I'm running Razer Synapse with a custom configuration.

Please help, the only solution I have right now is to manually go through my entire Device Manager list and uncheck any "allow the computer to turn off this device to save power" boxes that have been added or mysteriously turned back on by themselves.