Windows 11 lets you remove the Pin to taskbar and Unpin from taskbar options in two ways.
Please see them below and choose the one you prefer.
Remove Pin to Taskbar from Windows 11 Context Menu using Registry Editor
Here are the steps:
Navigate to HKEY_CURRENT_USER > Software > Policies > Microsoft > Windows.
Hit the Explorer key.
If you can’t find it, create it by right-clicking on the Windows key and selecting New > Key. Type Explorer and press the Enter key.
Right-click on a blank space in the right pane. Select New > DWORD (32-bit) Value. Enter NoPinningToTaskbar as the name, then press the Enter key.
Double-click it—type 1 in the Value data field and click the OK button.
Restart your PC or File Explorer.
That’s all. You cannot see those options in the context menu.
Note: You can add these options to the context menu by deleting the DWORD you’ve created or changing the value from 1 to 0. Restart your PC or File Explorer.
Remove Pin to Taskbar from Context Menu using the Local Group Policy Editor
Type gpedit.msc in the “Run Box” and press the Enter key.
Go to User Configuration > Administrative Templates > Start Menu and Taskbar.
On the right, find and double-click “Do not allow pinning programs to the Taskbar.”
Select Enabled and click OK.
Restart your PC.
That’s all. The “Pin to taskbar” and “Unpin from taskbar” options will no longer appear in the context menu.
Note: You can add these options to the context menu by following the steps above, but select Disabled or Not Configured.
I hope this guide, “How to Remove Pin to Taskbar from Context Menu,” is helpful to you.
Thanks for reading.