3

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

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
31290
  • 45
  • 1
  • 10

2 Answers2

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

See this page for Canonical Names of Control Panel Items

Loïc MICHEL
  • 24,935
  • 9
  • 74
  • 103
  • 1
    Super super Thanks for this! I'm so relief now, wow :) – 31290 Feb 19 '15 at 10:26
  • Note: %windir% didn't work for me, but c:\Windows did. (Context inside a .Net application: Process.Start("c:\Windows\System32\control.", "/name Microsoft.PowerOptions") – Jeff May 19 '15 at 18:24
-1

Find registry, that hanles this and modify/distribute it with powershell.

Miroslav Adamec
  • 1,060
  • 1
  • 15
  • 23