

This option is useful if you connect an external monitor to your laptop so you can keep working while the lid is closed.Īlso, note that the control panel gives you two separate drop-down menus to configure lid settings for On battery and plugged-in modes. If you choose Do nothing, your laptop will keep running even when the lid is closed.


If you select the Sleep option, Windows will put your laptop into sleep mode when the lid is closed. Under the Power and sleep buttons and lid settings, click the drop-down menu labeled When I Close the lid, as shown in the following screenshot. In the left pane of the Power Options console, click the link Choose what closing the lid does. In the Control Panel, click Hardware and Sound, and then Power Options. On your Windows 10 laptop, Go to Start Menu | Windows System | Control Panel. Windows 10 Power Options panel gives you the ability to configure Windows to what to do when the laptop lid is closed. How can i improve on the below, both in terms of runtime & in terms of cleanliness of the code.Laptop Shuts Down When Lid is Closed Windows 10ĭo you want to stop the laptop from shutting down when you close the lid? My first attempt takes over 10 seconds to run. However, this was a good excuse to attempt learning some powershell. Here is the easy workaround for this issue, after that you can close your laptop’s lid without interrupting anything.

and sometimes you’ll have to plug a USB mouse/keyboard to resume your laptop session. I know that i can use the powercfg command in a batch script to achieve this: powercfg -setacvalueindex 5ca83367-6e45-459f-a27b-476b1d01c936 0 By default Windows, 10 will put the laptop into sleep mode as soon as you close the laptop’s lid. I dont know about you, but immediately I close the lid on my laptop (sometimes unintentionally) the damn thing goes into sleep mode. I wanted to automate setting the action Windows 7 takes when the lid is closed on my work laptop, as this is reset via GPO every time i login.
