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.


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

  1. Press Win + R to open the Run dialog box, type regedit, and press Enter.
  2. Navigate to the Policies\Explorer path listed above.
  3. If the Explorer key does not exist under Policies, right-click Policies, select New > Key, and name it Explorer.
  4. Right-click inside the right pane, select New > DWORD (32-bit) Value, and name it LockTaskbar.
  5. Double-click LockTaskbar, set the Value data to 1, and click OK.
  6. 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.