powercfg /Qh return wrong result

Khanh Nguyen 0 Reputation points
2024-04-01T07:42:11.4766667+00:00

powercfg /Qh return wrong result

After set lid close action "do thing" then query again window return wrong result.

powercfg /setdcvalueindex scheme_current sub_buttons lidaction 0

powercfg /setacvalueindex scheme_current sub_buttons lidaction 0

then
powercfg /Qh 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 it return previous result ( before set lid action 0)

4ef6c379-d83c-4e38-94a6-b5133931553f

Expect current AC power and DC power setting index: 0x00000000

I checked Power Options. it already have changed to "do nothing"

904f6201-d353-46b9-ab38-9b8bd481ba0b

Thanks

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,150 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,047 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. S.Sengupta 15,111 Reputation points MVP
    2024-04-02T01:11:16.6166667+00:00

    Suggestions:

    #Try temporarily changing the lid close action back to the default setting (usually "Sleep") and then run powercfg /Qh again.

    If the results are accurate now, you can set your preferred lid close action and potentially the issue might be resolved.

    #Try resetting your power settings to defaults:

    Open PowerShell with administrator rights.

    In the PowerShell window, type the following command and press Enter: powercfg -restoredefaultschemes.

    Restart.