Display the menu bar in File Explorer
Afficher la barre de menus dans l’Explorateur de fichiers
Explanation
This policy setting configures File Explorer to always display the menu bar.
Note: By default, the menu bar is not displayed in File Explorer.
If you enable this policy setting, the menu bar will be displayed in File Explorer.
If you disable or do not configure this policy setting, the menu bar will not be displayed in File Explorer.
Note: When the menu bar is not displayed, users can access the menu bar by pressing the 'ALT' key.
Ce paramètre de stratégie configure l’Explorateur de fichiers de manière à toujours afficher la barre de menus.
Remarque : par défaut, la barre de menus n’est pas affichée dans l’Explorateur de fichiers.
Si vous activez ce paramètre de stratégie, la barre de menus est affichée dans l’Explorateur de fichiers.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, la barre de menus n’est pas affichée dans l’Explorateur de fichiers.
Remarque : lorsque la barre de menus n’est pas affichée, les utilisateurs peuvent y accéder en appuyant sur la touche Alt.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
AlwaysShowClassicMenu
| 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: Explorer/AlwaysShowClassicMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AlwaysShowClassicMenu' -Value 1 -Type DWordDisable
# Disable: Explorer/AlwaysShowClassicMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AlwaysShowClassicMenu' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Explorer/AlwaysShowClassicMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'AlwaysShowClassicMenu' -ErrorAction SilentlyContinue