How to Lock the Windows Taskbar via Registry
This guide explains how to prevent users from moving, resizing, or altering the Windows Taskbar using the Windows Registry Editor. By configuring a specific policy DWORD value, administrators can enforce a locked state across individual user profiles or the entire system, disabling the user’s ability to unlock or reposition the taskbar.
The Registry Value: LockTaskbar
The registry value that controls whether the Windows Taskbar remains
permanently locked against user modifications is
LockTaskbar.
- Value Name:
LockTaskbar - Value Type:
REG_DWORD(32-bit Value) - Value Data:
1= Taskbar is locked and cannot be unlocked, moved, or resized by the user.0= Taskbar lock behavior is determined by the standard user settings (Default).
Registry Locations
Depending on whether you want to enforce this restriction for the current user or all users on the computer, navigate to one of the following registry keys:
1. For Current User Only
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
2. For All Users (Machine-Wide)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
Step-by-Step Instructions
- Press
Win + Rto open the Run dialog box, typeregedit, and press Enter. - Navigate to the
Policies\Explorerpath listed above. - If the
Explorerkey does not exist underPolicies, right-clickPolicies, select New > Key, and name itExplorer. - Right-click inside the right pane, select New > DWORD
(32-bit) Value, and name it
LockTaskbar. - Double-click
LockTaskbar, set the Value data to1, and click OK. - Close the Registry Editor.
To apply the changes immediately, restart your computer or restart
the Windows Explorer process via Task Manager
(Ctrl + Shift + Esc > find Windows
Explorer > click Restart). Once applied,
the “Lock the taskbar” option in settings and context menus will be
grayed out or enforced.