In Windows 11, the taskbar lock is controlled from Taskbar settings:
- Right-click an empty area of the taskbar and select Taskbar settings (or open Settings > Personalization > Taskbar).
- In the taskbar settings, use the available taskbar options to configure and lock its layout and behavior as desired.
For managed or enterprise environments, taskbar locking can also be enforced via policy (for example, using the LockTaskbar or TaskbarLockAll ADMX-backed policies through MDM or Group Policy) so users cannot move or resize the taskbar.
References: