System Turn On or Off "Enable forced button/lid shutdown" in Windows 11


  • Staff
Power_banner.png

This tutorial will show you how to turn on or off "Enable forced button/lid shutdown" in Windows 11 and Windows 10.

The Enable forced button/lid shutdown power plan setting in Power Options specifies the type of system shutdown that occurs when the lid is closed or the power button is pressed if the Lid close action and/or Power button action is set to Shut down.

When Enable forced button/lid shutdown is turned off (default), a normal full shutdown of the computer is performed.

When Enable forced button/lid shutdown is turned on, a forced shutdown of the computer is performed. This forces running apps to close, and then performs a full shutdown of the computer. Any open documents might not be saved and data loss could occur.


Contents

  • Option One: Turn On or Off "Enable forced button/lid shutdown" for Specific Power Plan in Advanced Power Options
  • Option Two: Turn On or Off "Enable forced button/lid shutdown" for Current Power Plan in Windows Terminal
  • Option Three: Turn On or Off "Enable forced button/lid shutdown" for Specific Power Plan in Windows Terminal




Option One

Turn On or Off "Enable forced button/lid shutdown" for Specific Power Plan in Advanced Power Options


1 Open the Control Panel (icons view), and click/tap on the Power Options icon.

2 Click/tap on the Change plan settings link for the power plan (ex: "Balanced") you want to apply this to. (see screenshot below)

Enable_forced_shutdown_for_button_and_lid_Power_Options-1.png

3 Click/tap on the Change advanced power settings link. (see screenshot below)

Enable_forced_shutdown_for_button_and_lid_Power_Options-2.png

4 Expand open the Power buttons and lid and Enable forced button/lid shutdown settings. (see screenshot below step 5)

You can add Enable forced button/lid shutdown to Power Options if you do not have it available.


5 In both the On battery and Plugged in drop menus for the Enable forced button/lid shutdown setting, select Off (default) or On for what you want, and click/tap on OK.

Desktop computers will not have separate On battery and Plugged in options available unless it has a data connection to a UPS.


Enable_forced_shutdown_for_button_and_lid_Power_Options-3.png





Option Two

Turn On or Off "Enable forced button/lid shutdown" for Current Power Plan in Windows Terminal


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Copy and paste the command below you want to use for when on battery and/or plugged in into Windows Terminal, and press Enter.

 On battery
(Off - default)​
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 0

OR​

(On)​
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 1

AND/OR​

 Plugged in

You would use this option for a desktop computer, since desktop computers will not have separate On battery and Plugged in options available unless it has a data connection to a UPS.

(Off - default)​
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 0

OR​

(On)​
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 1

3 You can now close Windows Terminal if you like.




Option Three

Turn On or Off "Enable forced button/lid shutdown" for Specific Power Plan in Windows Terminal


1 Open Windows Terminal, and select either Windows PowerShell or Command Prompt.

2 Copy and paste the powercfg /L command into Windows Terminal, and press Enter. Make note of the GUID number (ex: 381b4222-f694-41f0-9685-ff5bb260df2e) of the power plan (ex: "Balanced") you want to apply this to. (see screenshot below)

The power plan (ex: Ultimate Performance) with an asterisk (*) to the right of it is your current active power plan scheme.


powercfg_L.png

3 Type the command below you want to use for when on battery and/or plugged in into Windows Terminal, and press Enter.

 On battery
(Off - default)​
powercfg -setdcvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 0

OR​

(On)​
powercfg -setdcvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 1

AND/OR​

 Plugged in

You would use this option for a desktop computer, since desktop computers will not have separate On battery and Plugged in options available unless it has a data connection to a UPS.

(Off - default)​
powercfg -setacvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 0

OR​

(On
powercfg -setacvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 1

Substitute GUID in the command above with the actual GUID from step 2 above for the power plan you want to apply this to.

For example:

powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 833a6b62-dfa4-46d1-82f8-e09e34d029d6 0


4 You can now close Windows Terminal if you like.


That's it,
Shawn Brink


 

Attachments

  • Power.png
    Power.png
    15.4 KB · Views: 106
Last edited:
I do not have the menu entrys you show in picture 3. I have:
  • USB settings
  • PCI Express
  • Processor power
  • Display
But not "Power buttons and lid"

But I don't miss them. Take a look at your first picture - left menu; there you have:
  • Choose what the power button does
  • Choose what closing the lid does
 

My Computer

System One

  • OS
    Windows 11
I do not have the menu entrys you show in picture 3. I have:
  • USB settings
  • PCI Express
  • Processor power
  • Display
But not "Power buttons and lid"

But I don't miss them. Take a look at your first picture - left menu; there you have:
  • Choose what the power button does
  • Choose what closing the lid does

Hello, :-)

The items you have available in Power Options will depend on what's available for your device. Some of these can be manually added if wanted though.

If you would like to add them, then please go ahead and create a new thread in the forum to get help with this.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium

Latest Support Threads

Back
Top Bottom