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


  • Staff
Power_banner.png

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.

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


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: 45
Last edited:

Unawave

Member
Local time
4:02 AM
Posts
8
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
 

My Computer

System One

  • OS
    Windows 11

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
9:02 PM
Posts
6,739
OS
Windows 11 Pro for Workstations
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
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    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,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium
Top Bottom