Open in the explorer

Allow standby states (S1-S3) when sleeping (plugged in)

Autoriser les états de veille (S1-S3) lorsque l’ordinateur est en veille (sur secteur)

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Power Management › Sleep Settings FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Gestion de l’alimentation › Paramètres de la veille
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
Power.admx
Internal name
Power/AllowStandbyStatesAC_2

Explanation

This policy setting manages whether or not Windows is allowed to use standby states when putting the computer in a sleep state.

If you enable or do not configure this policy setting, Windows uses standby states to put the computer in a sleep state.

If you disable this policy setting, standby states (S1-S3) are not allowed.

French text from Windows 11 26H2

Ce paramètre de stratégie gère si Windows est autorisé ou non à utiliser les états de veille lors de la mise en veille de l’ordinateur.

Si vous activez ce paramètre de stratégie ou ne le configurez pas, Windows utilise les états de veille pour mettre l’ordinateur en veille.

Si vous désactivez ce paramètre de stratégie, les états de veille (S1-S3) ne sont pas autorisés.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab
Value name
ACSettingIndex
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: Power/AllowStandbyStatesAC_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ACSettingIndex' -Value 1 -Type DWord

Disable

# Disable: Power/AllowStandbyStatesAC_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ACSettingIndex' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Power/AllowStandbyStatesAC_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\abfc2519-3608-4c2a-94ea-171b0ed546ab'
Remove-ItemProperty -Path $k -Name 'ACSettingIndex' -ErrorAction SilentlyContinue

Availability