Is powercfg /qh argument described anywhere?


  1. Posts : 3
    Windows 11 23H2 (22631.3447)
       #1

    Is powercfg /qh argument described anywhere?


    Is the powercfg /qh argument described anywhere?
      My Computer


  2. Posts : 17,012
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    There are references to its existence on page 28 of a 2010 MS document. I tracked down a current download link for it.
    https://docs.microsoft.com/en-us/pre...ectedfrom=MSDN


    As the document says, unlike the documented
    Code:
    PowerCfg -q
    , which lists non-hidden power properties,
    Code:
    PowerCfg -qh
    lists both hidden & non-hidden power properties.
    - I have never seen any documentation to explain which properties are hidden & which are not.
    - I have never seen any documentation to explain why any properties are hidden.
    - I have never understood which properties are hidden. There does not seem to be any logic to it at all.


    All the best,
    Denis
      My Computer


  3. Posts : 827
    Windows 7
       #3

    By default, Windows hides the advanced Power Plan settings because inexperienced users will randomly change with them without learning what each function does.

    There are scripts to unhide (remove the Hidden attribute) each of the different GUID's (named sections of the Power Plan).

    Here's a list that provides functional names to the hidden GUID's:
    Enable all advanced power settings in Windows. . GitHub
    Last edited by garlin; 1 Week Ago at 11:38.
      My Computer


  4. Posts : 3
    Windows 11 23H2 (22631.3447)
    Thread Starter
       #4

    Thank you both very much for your responses.

    Trying to gain a more in depth understanding of Windows seems difficult largely due to its often inconsistent and fragmented documentation. How you managed to find that white paper, Try3, is something of a feat of heroics in my mind.
      My Computer


  5. Posts : 17,012
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    aflav said:
    T... often inconsistent and fragmented documentation ...
    All Windows commands, such as PowerCfg, started life decades ago and got amended along the way so documentation changes often lagged behind or just got forgotten.
    Try, for example, to get documentation on the command Netsh and everything you will find online is about pre-Windows10/11 versions of the command despite it having been comprehensively re-written when Windows 10 was introduced. And those webpages will not tell you that they are out-of-date.


    Like almost all commands, entering
    PowerCfg /?
    Netsh /?
    will get you the top-level built-in Help for a command but you then have to dive down through, for example,
    PowerCfg /Query /?
    for the next level.
    On the plus side, the built-in Help does normally seem to be up-to-date.


    If I'm trying to learn how to use a particular command, I refer to
    Command index - SS64
    and
    Windows commands - MSLearn
    But always test things out because of the risk that their guidance is out of date.


    Some PowerCfg commands need to be run as Admin because they alter factors that affect all user accounts.


    If your interest in PowerCfg is because you intend to use a script to alter a power property then do post back to say which property.
    - It might be included in a forum tutorial, if you're lucky.
    - It might be one for which one of us has kept a sample command, if you're lucky.
    I needed to alter one fifteen years ago and at that time the document I gave you a link to was one of MS's downloads. It took me hours of study & experimentation to figure out how to do it.
    Do make a new system image before altering any power properties just in case you make a mistake that is difficult to recover from.


    All the best,
    Denis



    Welcome to TenForums.

    It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.
    - At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
    - I download a new copy each month.
    - By downloading it as a spreadsheet I can benefit from Excel's excellent filtering capabilities when I search for topics of interest.
    - Tutorials are also listed by category at Tutorials - there's also a shortcut to that at the top of every page.
    - Both tutorial lists are searchable.
    - You can also search for TenForumsTutorials in many general search engines, such as Google, by adding site:tenforums.com/tutorials after your search term. For example,
    taskbar toolbars site:tenforums.com/tutorials

    You can search TenForums using the search box in the top-right corner of all TenForums webpages or using Advanced Search - TenForums
    - You can also search TenForums threads in many general search engines, such as Google, by adding site:tenforums.com after your search term. For example,
    Search for drivers by HardwareID site:tenforums.com
    - [This is what the search box in the top-right corner of TenForums webpages does automatically]
      My Computer


  6. Posts : 3
    Windows 11 23H2 (22631.3447)
    Thread Starter
       #6

    It's a bit of story that's got me asking the question, to be honest. If you're curious about my path, I've documented it below.

    It started because my Dell XPS 13 7390, for reasons I still don't understand and doing some Googling it doesn't look like others do either, likes to co-opt the power button and force it to run the "slide to shutdown" feature when pressed. I just want it to hibernate the machine when pushed, and I have set it that way in the graphical "Define power buttons and turn on password protection" dialog.

    For a long while I was able to run the power troubleshooter, and whatever that did would "reset" the button back to my hibernate setting after having been "randomly" re-instructed to use "slide to shutdown" by whatever minions are running around in my OS. But since moving to Windows 11, it appears that the troubleshooter is not as successful at performing this as it once was.

    I've seen posts that say to delete the slidetoshutdown.exe but rather than do that I've just renamed it to slidetoshutdownbak.exe. I realize that this likely isn't a permanent solution, as the forums warn elsewhere, but for now it appears to work.

    In addition to this, was curious if powercfg offered any solutions, and while investigating it and comparing what I was seeing with what others were posting regarding specific GUIDs, I was only seeing the Start menu power button setting under the Power buttons and lid subgroup. And I could not, for the life of me, figure out why that was, until I finally came across a post describing the /qh argument.

    Running that I was able to see the missing settings and obviously a lot more, but I was irked that formal documentation of this argument is not easily found, and the only way I found out about it was from folks posting here and elsewhere, informally, about it. It was sort of like, "where did this magical command come from" and "how the heck did these other guys find it".

    Anyway, I'm glad to know that some form of documentation exists for it from Microsoft and with enough digging they do formally acknowledge it.

    Thank you again!

    -Alex
      My Computer


  7. Posts : 17,012
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    Alex,

    aflav said:
    ... "slide to shutdown" feature ...
    One of my Windows 10 computers suffered from that. I disabled it. The problem has never returned.
    Disable Slide to shutdown PC - my post #27 - ElevenForum
    Here's my batch file, which must be run as Admin.
    DisableSlideToShutdown.bat

    Since your renaming .bak solution is holding for the time being, you can just leave it as it is but, if the problem returns, you can run that batch file.


    All the best,
    And thanks for the rep,
    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:16.
Find Us




Windows 10 Forums