Open in the explorer

Show sleep in the power options menu

Afficher mettre en veille dans le menu Options d’alimentation

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › File Explorer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
WindowsExplorer.admx
Internal name
WindowsExplorer/ShowSleepOption

Explanation

Shows or hides sleep from the power options menu.

If you enable this policy setting, the sleep 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 sleep 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 sleep to show through the Power Options Control Panel.

French text from Windows 11 26H2

Affiche ou masque la mise en veille dans le menu Options d’alimentation.

Si vous activez ce paramètre de stratégie, l’option de mise en veille 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 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 s’affiche via Options d’alimentation du Panneau de configuration.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer
Value name
ShowSleepOption
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: WindowsExplorer/ShowSleepOption
$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 'ShowSleepOption' -Value 1 -Type DWord

Disable

# Disable: WindowsExplorer/ShowSleepOption
$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 'ShowSleepOption' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsExplorer/ShowSleepOption
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'ShowSleepOption' -ErrorAction SilentlyContinue

Availability