Look at the application first:
Open cmd input
powercfg/batteryreport
Press Enter to view the battery usage report from the last reinstallation of the system to the present
Introducing powercfg
powercfg.exe is a Windows device experience/modern standby/test and diagnosis/Powercfg command-line option component. Use powercfg.exe to control the power plan (also called power plan) to use the available sleep states and control the power state of a single device , And analyze common energy efficiency and battery life issues in the system.
Rules of Use
The Powercfg command line uses the following syntax:
powercfg /option [arguments] [ /? ]
Among them, option is one of the options listed in the following table, and arguments are one or more parameters applied to the selected option. Including /? in the command line will display help for the specified option. Options and parameters will be described in more detail later in this topic.
Command line options
Options | Description |
---|---|
/?、-help | Display information about command line parameters. |
/list、/L | List all power schemes. |
/query、/Q | Display the contents of the power plan. |
/change、/X | Modify the setting value in the current power scheme. |
/changename | Modify the name and description of the power plan. |
/duplicatescheme | Copy the power scheme. |
/delete、/D | Delete the power plan. |
/deletesetting | Delete power settings. |
/setactive、/S | Make a power scheme active on the system. |
/ getactivescheme | Retrieve the power scheme that is currently active. |
/setacvalueindex | Set the value associated with a certain power setting when the system is powered by AC power. |
/setdcvalueindex | Set the value associated with a certain power setting when the system is powered by DC power. |
/import | Import all power settings from the file. |
/export | Export the power scheme to a file. |
/aliases | Display all aliases and their corresponding GUIDs. |
/getsecuritydescriptor | Get the security descriptor associated with the specified power setting, power scheme, or operation. |
/setsecuritydescriptor | Get security descriptors associated with power settings, power schemes, or operations. |
/hibernate、/H | Enable and disable the hibernation function. |
/availablesleepstates、/A | Report the sleep states available on the system. |
/devicequery | Returns a list of devices that meet the specified conditions. |
/deviceenableawake | Enable the device to wake the system from sleep. |
/devicedisablewake | Disable the device's ability to wake the system from sleep. |
/ lastwake | Report information about which component awakened the system from the last sleep transition state. |
/ waketimers | Enumerate active wake-up timers. |
/requests | Enumerate application and driver power requests. |
/requestsoverride | Set up power request rewriting for a specific process, service, or driver. |
/energy | Analyze common energy efficiency and battery life issues in the system. |
/batteryreport/batteryreport | Generate reports on battery usage. |
/sleepstudy | Generate a power conversion report for the diagnostic system. |
/ srumutil | Dump energy estimation data from the system resource usage monitor (SRUM). |
/systemsleepdiagnostics | Generate a diagnostic report of the system sleep transition. |
/systempowerreport | Generate a power conversion report for the diagnostic system. |