Remove access to the context menus for the taskbar: registry value NoTrayContextMenuComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Policy ID
NoTrayContextMenu
Scope
Computer Configuration, User Configuration
Supported on
At least Windows 2000
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Start Menu and Taskbar

Registry

NoTrayContextMenu

-ComputerUser