Search code examples
powershellcmdpowercfg

How to open Power Options > System Settings with cmd / Powershell, or other


After looking over the Internet for days now, I have no other choices that ask you my question.

How can I open, with cmd / run / powershell (or whatever) the followong control panel:

Choose what closing the lid does

I know how to enter powercfg.cpl but I'm stuck opening it to get there:

Lid Options

I also know this is possible to change power plans with cmd but this is not how I must do that.

Many thanks in advance and have a great day :D


Solution

  • %windir%\system32\control.exe /name Microsoft.PowerOptions /page  pageGlobalSettings
    

    See this page for Canonical Names of Control Panel Items