Steps to Lock or Unlock the Taskbar
1. One Method is to press Windows + D. You can check it by Right Clicking in the taskbar. You’ll see that Lock the Taskbar is marked.
2. Right Click on the Taskbar of Desktop and check the option Lock the Taskbar.
3. Another method is to Right click on the Taskbar-> Go to Properties-> Check the option Lock the TaskBar.