Specify the system hibernate timeout (plugged in)
Spécifier le délai de veille prolongée du système (sur secteur)
Explanation
This policy setting allows you to specify the period of inactivity before Windows transitions the system to hibernate.
If you enable this policy setting, you must provide a value, in seconds, indicating how much idle time should elapse before Windows transitions to hibernate.
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.
Ce paramètre de stratégie vous permet de spécifier la période d’inactivité avant que Windows ne fasse basculer le système en mode Veille prolongée.
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 en veille prolongée.
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\9D7815A6-7EE4-497E-8888-515A05F02364- 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/ACHibernateTimeOut_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\9D7815A6-7EE4-497E-8888-515A05F02364'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# System Hibernate Timeout (seconds)
Set-ItemProperty -Path $k -Name 'ACSettingIndex' -Value 0 -Type DWord # maximum 4294967295Disable
# Disable: Power/ACHibernateTimeOut_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Power/ACHibernateTimeOut_2
$k = 'HKLM:\Software\Policies\Microsoft\Power\PowerSettings\9D7815A6-7EE4-497E-8888-515A05F02364'
Remove-ItemProperty -Path $k -Name 'ACSettingIndex' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| System Hibernate Timeout (seconds):Délai de mise en veille prolongée du système (secondes) :EnterACHibernateTimeOut | Numeric boxdecimal | ACSettingIndex | REG_DWORD | Required · Max: 4294967295 |