Turn on menu bar by default
Activer la barre de menus par défaut
Explanation
This policy setting allows you to turn on or turn off the earlier menus (for example, File, Edit, and View) in Internet Explorer.
If you enable this policy setting, the menu bar appears in Internet Explorer by default, and the user cannot turn it off.
If you disable this policy setting, the menu bar appears in Internet Explorer by default, and the user cannot turn it on.
If you do not configure this policy setting, the menu bar is turned off by default. The user can turn on or turn off the menu bar.
Ce paramètre de stratégie permet d’activer ou de désactiver les menus antérieurs (par exemple Fichier, Edition et Affichage) dans Internet Explorer.
Si vous activez ce paramètre de stratégie, la barre de menus s’affiche par défaut dans Internet Explorer et l’utilisateur ne peut pas la désactiver.
Si vous désactivez ce paramètre de stratégie, la barre de menus s’affiche par défaut dans Internet Explorer et l’utilisateur ne peut pas l’activer.
Si vous ne configurez pas ce paramètre de stratégie, la barre de menus est désactivée par défaut. L’utilisateur est libre de l’activer ou de la désactiver.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main- Value name
AlwaysShowMenus
| 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.
Computer (HKLM)
Enable
# Enable: inetres/AlwaysShowMenu
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AlwaysShowMenus' -Value 1 -Type DWordDisable
# Disable: inetres/AlwaysShowMenu
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AlwaysShowMenus' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/AlwaysShowMenu
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'AlwaysShowMenus' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"