Ouvrir dans l'explorateur

Afficher mettre en veille prolongée dans le menu Options d’alimentation

Show hibernate in the power options menu

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers EN : Computer Configuration › Policies › Administrative Templates › Windows Components › File Explorer
Pris en charge sur
Au minimum Windows Server 2012, Windows 8 ou Windows RT EN : At least Windows Server 2012, Windows 8 or Windows RT
Fichier ADMX
WindowsExplorer.admx
Nom interne
WindowsExplorer/ShowHibernateOption

Explication

Texte français issu de Windows 11 26H2

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.

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.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer
Nom de la valeur
ShowHibernateOption
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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 DWord

Désactiver

# Désactiver : 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 DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : WindowsExplorer/ShowHibernateOption
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'ShowHibernateOption' -ErrorAction SilentlyContinue

Disponibilité