Don’t need to format disk and reinstall, just switch another account to check if taskbar works, maybe current situation is a user profile issue.
If taskbar locked on every account, you need to consider system restore or reset, this two ways also can keep your data.
Go to Settings->Update & Security-> Recovery->Reset this PC
-------------------------------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.