Lock all toolbars
Verrouiller toutes les barres d’outils
Explanation
This policy setting allows you to lock or unlock the toolbars on the user interface.
If you enable this policy setting, the toolbars are locked and the user cannot move them.
If you disable this policy setting, the toolbars are unlocked and the user can move them.
If you do not configure this policy setting, the toolbars are locked by default, but the user can unlock them through the shortcut menu of the Command bar.
Ce paramètre de stratégie vous permet de verrouiller ou déverrouiller les barres d’outils dans l’interface utilisateur.
Si vous activez ce paramètre de stratégie, les barres d’outils sont verrouillées et l’utilisateur ne peut pas les déplacer.
Si vous désactivez ce paramètre de stratégie, les barres d’outils sont déverrouillées et l’utilisateur peut les déplacer.
Si vous ne configurez pas ce paramètre de stratégie, les barres d’outils sont verrouillées par défaut, mais l’utilisateur peut les déverrouiller via le menu contextuel de la barre de commandes.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\ToolbarHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Toolbar- Value name
Locked
| 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/LockToolbars
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Toolbar'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Locked' -Value 1 -Type DWordDisable
# Disable: inetres/LockToolbars
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Toolbar'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Locked' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/LockToolbars
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Toolbar'
Remove-ItemProperty -Path $k -Name 'Locked' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"