Show hibernate in the power options menu
Afficher mettre en veille prolongée dans le menu Options d’alimentation
Explanation
Shows or hides hibernate from the power options menu.
If you enable this policy setting, the hibernate option will be shown in the Power Options menu (as long as it is supported by the machine's hardware).
If you disable this policy setting, the hibernate option will never be shown in the Power Options menu.
If you do not configure this policy setting, users will be able to choose whether they want hibernate to show through the Power Options Control Panel.
Affiche ou masque la mise en veille prolongée dans le menu Options d’alimentation.
Si vous activez ce paramètre de stratégie, l’option de mise en veille prolongée est affichée dans le menu Options d’alimentation (si cette option est prise en charge par le matériel de l’ordinateur).
Si vous désactivez ce paramètre de stratégie, l’option de mise en veille prolongée n’est jamais affichée dans le menu Options d’alimentation.
Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent choisir s’ils veulent que l’option de mise en veille prolongée s’affiche via Options d’alimentation du Panneau de configuration.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer- Value name
ShowHibernateOption
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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: WindowsExplorer/ShowHibernateOption
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ShowHibernateOption' -Value 1 -Type DWordDisable
# Disable: WindowsExplorer/ShowHibernateOption
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ShowHibernateOption' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsExplorer/ShowHibernateOption
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'ShowHibernateOption' -ErrorAction SilentlyContinue