Relative Content

Tag Archive for pythonwindowsusbwmidevice

Uncheck “Allow the computer to turn off this device to save power” programatically in Windows 11

I have several computers with cameras connected to them via USB. I figured that after more than 30 hours of utilization, the cameras would disconnect from the computer. The reason seem to be related to a Device Manager USB property called “Allow the computer to turn off this device to save power”. When this property is unchecked, my cameras keep running fine. My problem is that I have quite a number of computer to check, and I was worried that this setting might be reset during a Windows update.