This tutorial shows you how to change what happens when you close your laptop lid in Windows 11.
The lid switch close action lets you pick what your computer does when you shut the lid.
You can choose one of these actions:
- Do Nothing = Your computer does nothing when you close the lid.
- Sleep = Your computer goes to sleep when you close the lid.
- Hibernate = Your computer enters hibernate mode when you close the lid.
- Shut Down = Your computer shuts down when you close the lid.
Starting with Windows 11 build 29550.1000 (Canary), changes to power settings like Display, Sleep, Hibernate timeouts, Power/Sleep button, and lid close actions from Settings now apply to all power plans. This helps your settings stay the way you want them.
Option One
Change Lid Close Action for Current Power Plan in Settings
This option is only available starting with Windows 11 version 24H2.
- Open Settings (Win+I).
- Click System on the left side, then click Power & battery on the right side.

- Click Lid & power button controls to expand it open.
- Select Do Nothing, Sleep (default), Hibernate, Shutdown, or Display Off for what you want in the “Plugged in” and “On battery” Closing the lid will make my PC drop menus.

- You can now close Settings if you like.
Option Two
Change Lid Close Action for Current Power Plan in Power Options
- Open the Control Panel (icons view), and click the Power Options icon.
- Click Choose what the power button does in the left pane.

- In both the “On battery” and “Plugged in” drop menus for the “When I close the lid” setting, select Do nothing, Sleep (default), Hibernate, or Shut down for what you want, and click Save changes.
Note: Desktop computers will not have separate “On battery” and “Plugged in” options available unless it has a data connection to a UPS.

Option Three
Change Lid Close Action for Specific Power Plan in Advanced Power Options
- Open the Control Panel (icons view), and click the Power Options icon.
- Click Change plan settings for the power plan (example: “Balanced”) you want to apply this to.

- Click Change advanced power settings.

- Expand open the Power buttons and lid and Lid close action settings.
- In both the “On battery” and “Plugged in” drop menus for the Lid close action setting, select Do nothing, Sleep (default), Hibernate, or Shut down for what you want, and click OK.
Note: Desktop computers will not have separate “On battery” and “Plugged in” options available unless it has a data connection to a UPS.

Option Four
Change Lid Close Action for Current Power Plan in Windows Terminal
- Open Windows Terminal, and select either Windows PowerShell or Command Prompt.
- 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
{Do nothing}
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
OR
{Sleep – default}
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 1
OR
{Hibernate}
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 2
OR
{Shut down}
powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 3
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.
{Do nothing}
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
OR
{Sleep – default}
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 1
OR
{Hibernate}
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 2
OR
{Shut down}
powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 3
- You can now close Windows Terminal if you like.
Option Five
Change Lid Close Action for Specific Power Plan in Windows Terminal
- Open Windows Terminal, and select either Windows PowerShell or Command Prompt.
- Copy and paste the command below into Windows Terminal, and press Enter. Write down the GUID number (example: 381b4222-f694-41f0-9685-ff5bb260df2e) of the power plan (example: “Balanced”) you want to apply this to.
Note: The power plan (example: Ultimate Performance) with an asterisk (*) next to it is your current active power plan.
powercfg /L
- Type the command below you want to use for when on battery and/or plugged in into Windows Terminal, and press Enter.
On battery
(Do nothing)
powercfg -setdcvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
OR
(Sleep – default)
powercfg -setdcvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 1
OR
(Hibernate)
powercfg -setdcvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 2
OR
(Shut down)
powercfg -setdcvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 3
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.
(Do nothing)
powercfg -setacvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
OR
(Sleep – default)
powercfg -setacvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 1
OR
(Hibernate)
powercfg -setacvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 2
OR
(Shut down)
powercfg -setacvalueindex GUID 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 3
Note: Replace GUID in the command above with the actual GUID from step 2 for the power plan you want to apply this to.
Example: Set to “Shut down” while “Plugged in” for the Balanced power plan GUID (381b4222-f694-41f0-9685-ff5bb260df2e)
powercfg -setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 3
- You can now close Windows Terminal if you like.
Option Six
Specify Lid Close Action for All Power Plans in Local Group Policy Editor
⚠️ ADMIN REQUIRED: You must be signed in as an administrator to use this option.
Note: The Local Group Policy Editor is only available in Windows 11 Pro, Enterprise, and Education editions. All editions can use Option Seven below to configure the same policy.
- Open the Local Group Policy Editor (
gpedit.msc). - Navigate to the location below in the left pane of the Local Group Policy Editor.
Computer Configuration > Administrative Templates > System > Power Management > Button Settings

- In the right pane of Button Settings, double-click the Select the lid switch action (plugged in) and/or Select the lid switch action (on battery) policy you want to edit.
Default User Choice for Lid Close Action
- Select (dot) Not Configured, click OK
To Specify “Hibernate” for Lid Close Action
- Select (dot) Enabled, select Hibernate in the Lid Switch Action drop menu under Options, click OK
To Specify “Shut down” for Lid Close Action
- Select (dot) Enabled, select Shut down in the Lid Switch Action drop menu under Options, click OK
To Specify “Sleep” for Lid Close Action
- Select (dot) Enabled, select Sleep in the Lid Switch Action drop menu under Options, click OK
To Specify “Take no action” for Lid Close Action
- Select (dot) Enabled, select Take no action in the Lid Switch Action drop menu under Options, click OK

Conclusion
In conclusion, adjusting the lid close action in Windows 10 and Windows 11 is a straightforward process that can enhance your user experience. By customizing what happens when you close your laptop lid, you can:
- Choose Your Preferred Action: Select an action that suits your needs—whether it be Do Nothing, Sleep, Hibernate, or Shut Down.
- Apply Settings to Specific Power Plans: Make adjustments for different power plans to optimize performance and energy consumption.
- Utilize Various Methods: Choose from multiple methods such as Settings, Control Panel, Windows Terminal, or Group Policy Editor to implement your desired changes.
- Experience Consistency Across Power Plans: Starting with Windows 11 build 29550.1000, your settings will remain consistent across all power plans.
- Enhance Productivity: Tailor your laptop’s behavior to fit your workflow and enhance overall productivity.
By following these steps, you can easily manage your laptop’s behavior when closing the lid, ensuring it aligns with your personal preferences.




Leave a Reply