Select the lid switch action (plugged in): registry value ACSettingIndexComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936
- Policy ID
- ACSystemLidAction_2
- Scope
- Computer Configuration
- Supported on
- At least Windows Vista
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › Power Management › Button Settings
Registry
ACSettingIndex
REG_DWORDComputerHKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936 Current key
- Enabled value
- Depends on the option value
- Element
- Lid Switch Action
| Item | Stored value |
|---|---|
| Take no action | 0 |
| Sleep | 1 |
| Hibernate | 2 |
| Shut down | 3 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936] ; Options (use only one) ; Take no action "ACSettingIndex"=dword:00000000 ; Sleep "ACSettingIndex"=dword:00000001 ; Hibernate "ACSettingIndex"=dword:00000002 ; Shut down "ACSettingIndex"=dword:00000003
CMD
:: Options (use only one) :: Take no action reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936" /v "ACSettingIndex" /t REG_DWORD /d 0 /f :: Sleep reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936" /v "ACSettingIndex" /t REG_DWORD /d 1 /f :: Hibernate reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936" /v "ACSettingIndex" /t REG_DWORD /d 2 /f :: Shut down reg add "HKLM\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936" /v "ACSettingIndex" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Force | Out-Null # Options (use only one) # Take no action New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'ACSettingIndex' -PropertyType DWord -Value 0 -Force | Out-Null # Sleep New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'ACSettingIndex' -PropertyType DWord -Value 1 -Force | Out-Null # Hibernate New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'ACSettingIndex' -PropertyType DWord -Value 2 -Force | Out-Null # Shut down New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\5CA83367-6E45-459F-A27B-476B1D01C936' -Name 'ACSettingIndex' -PropertyType DWord -Value 3 -Force | Out-Null