Open in the explorer

Specify the unattended sleep timeout (plugged in)

Spécifier le délai de veille si l’ordinateur n’est pas utilisé (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 Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
Power.admx
Internal name
Power/UnattendedSleepTimeOutAC

Explanation

This policy setting allows you to specify the period of inactivity before Windows transitions to sleep automatically when a user is not present at the computer.

If you enable this policy setting, you must provide a value, in seconds, indicating how much idle time should elapse before Windows automatically transitions to sleep when left unattended. If you specify 0 seconds, Windows does not automatically transition to sleep.

If you disable or do not configure this policy setting, users control this setting.

If the user has configured a slide show to run on the lock screen when the machine is locked, this can prevent the sleep transition from occuring. The "Prevent enabling lock screen slide show" policy setting can be used to disable the slide show feature.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de spécifier la période d’inactivité avant que Windows bascule automatiquement en veille lorsque aucun utilisateur n’est présent devant l’ordinateur.

Si vous activez ce paramètre de stratégie, vous devez fournir une valeur, en secondes, indiquant la durée d’inactivité qui doit s’écouler avant que Windows ne passe automatiquement en veille lorsque l’ordinateur n’est pas utilisé. Si vous indiquez 0 seconde, Windows ne bascule pas automatiquement en veille.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs contrôlent ce paramètre.

Si l’utilisateur a configuré l’exécution d’un diaporama dans l’écran de verrouillage quand l’ordinateur est verrouillé, cela peut empêcher la transition vers la mise en veille de se produire. Le paramètre de stratégie « Empêcher l’activation du diaporama de l’écran de verrouillage » peut servir à désactiver la fonctionnalité de diaporama.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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/UnattendedSleepTimeOutAC
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Unattended Sleep Timeout (seconds)
Set-ItemProperty -Path $k -Name 'ACSettingIndex' -Value 0 -Type DWord  # maximum 4294967295

Disable

# Disable: Power/UnattendedSleepTimeOutAC
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Power/UnattendedSleepTimeOutAC
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0'
Remove-ItemProperty -Path $k -Name 'ACSettingIndex' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Unattended Sleep Timeout (seconds):Délai de mise en veille si l’ordinateur n’est pas utilisé (secondes) :EnterUnattendedSleepTimeOutNumeric boxdecimalACSettingIndexREG_DWORD
Required · Max: 4294967295

Availability