Lock the Taskbar
Verrouiller la Barre des tâches
Explanation
This setting affects the taskbar, which is used to switch between running applications.
The taskbar includes the Start button, list of currently running tasks, and the notification area. By default, the taskbar is located at the bottom of the screen, but it can be dragged to any side of the screen. When it is locked, it cannot be moved or resized.
If you enable this setting, it prevents the user from moving or resizing the taskbar. While the taskbar is locked, auto-hide and other taskbar options are still available in Taskbar properties.
If you disable this setting or do not configure it, the user can configure the taskbar position.
Note: Enabling this setting also locks the QuickLaunch bar and any other toolbars that the user has on their taskbar. The toolbar's position is locked, and the user cannot show and hide various toolbars using the taskbar context menu.
Ce paramètre affecte la barre des tâches, qui sert à basculer entre les applications en cours d’exécution.
La barre des tâches inclut le bouton Démarrer, la liste des tâches en cours d’exécution et la zone de notification. Par défaut, la barre des tâches se situe en bas de l’écran, mais elle peut être déplacée sur n’importe quel côté de l’écran. Lorsqu’elle est verrouillée, elle ne peut pas être déplacée ou redimensionnée.
Si vous activez ce paramètre, il empêche l’utilisateur de déplacer ou de redimensionner la barre des tâches. Même si la barre des tâches est verrouillée, le masquage automatique et les autres options de la barre des tâches sont toujours disponibles dans les Propriétés de la barre des tâches.
Si vous désactivez ce paramètre ou si vous ne le configurez pas, l’utilisateur peut configurer la position de la barre des tâches.
Remarque : l’activation de ce paramètre verrouille également la barre de lancement rapide et toutes les autres barres d’outils que l’utilisateur a paramétrées sur sa barre des tâches. La position de la barre des tâches est verrouillée, et l’utilisateur ne peut pas afficher et masquer les différentes barres d’outils en utilisant le menu contextuel de la barre des tâches.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
LockTaskbar
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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: StartMenu/LockTaskbar
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'LockTaskbar' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: StartMenu/LockTaskbar
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'LockTaskbar' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": StartMenu/LockTaskbar
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'LockTaskbar' -ErrorAction SilentlyContinue