I am attempting to identify a possible problem with my Surface Pro 6, which is completely up to date. Whenever I leave it in sleep mode overnight, the battery level decreases by approximately 15-25%.

During my inquiry, I aimed to examine both aspects.

powercfg /batteryreport
powercfg /sleepstudy

Nevertheless, when I execute these instructions from a command prompt that has elevated privileges, I receive the following feedback.

Unable to perform operation.  An unexpected error (0xb7) has occurred:  Cannot create a file when that file already exists. 

Although it is true that battery-report.html does exist, it is not significant on any other computer since it just overwrites the file.

My powercfg functions properly when I execute it.

powercfg /energy

It generates the anticipated result.

Enabling tracing for 60 seconds...
Observing system behavior...
Analyzing trace data...
Analysis complete.

Energy efficiency problems were found.

8 Errors
8 Warnings
42 Informational

See C:\WINDOWS\system32\energy-report.html for more details.

The report includes multiple instances of “USB Suspend: USB Device not Entering Selective Suspend,” which I believe are related to my Surface Dock. However, if I run the report without the dock connected, these instances do not appear.

Nonetheless, this issue is not the one I am attempting to address at the moment.


powercfg /systemsleepdiagnostics = works…

powercfg /systempowerreport = fails (file exists error again)

powercfg /srumutil = fails with…

Error: SruUpdateStats failed
Completed with status 183 (0x000000b7)
Unable to perform operation.  An unexpected error (0x1f) has occurred:  A device attached to the system is not functioning.


These are not functioning properly:

powercfg /batteryreport
powercfg /sleepstudy
powercfg /systempowerreport
powercfg /srumutil

Although these are not…

powercfg /energy
powercfg /systemsleepdiagnostics
Askify Moderator Edited question April 30, 2023