When you right-click anywhere on your computer, the context menu displays an array of options to work with. For Instance, right-clicking on the desktop allows you to arrange Icons, sort them by name and so forth. Essentially, this means that any user can utilize these options and do as they please. In this tutorial, I will show you how to disable the right-click altogether on the desktop and In the Windows Explorer environment- without touching any of the mouse settings.
To achieve this, I will be using a neat little tweak via the good old Windows Registry. Unlike the Group Policy Editor, every edition of Windows 10 (and prior) supports the Registry, so you're all set to go. Given It's a critical part of the operating system, prior to performing any tweak, I strongly suggest backing up the Registry using It's Export feature.
Please note that this tweak Is only applicable to the desktop and Windows Explorer. You can still right-click on the task bar, programs etc. So what's the purpose of this? Well, It restricts access to the said options above, hence prevents unauthorized changes to your PC. Okay, now that you have an understanding of It's objective, let's rip Into this guide.
Navigate to the Run menu, enter "regedit" (no quotes) and hit OK.
The Register window will now open, so navigate to the following directory:
Right-click on "Explorer > New > DWORD (32-bit) Value" as shown below.
Next, name the value that you just created above as "NoViewContextMenu" (no quotes). Be sure to enter It exactly as written.
Now double-click the Value name ("NoViewContextMenu") that you just created above, and In the Value data field, enter 1. Click OK to finish the process.
For the change to take effect, reboot your PC or log off & log In. Now try right-clicking on your desktop and the same In Windows Explorer. The function Is completely disabled. To go back to It's previous state, enter a value of 0 In the Value data as per the above step. I did exactly that, and the right-click functionality was restored.
Whilst the tweak doesn't disable the right-click entirely, It still serves as a pretty good security measure to prevent changes such as rearranging your desktop Items, customizing folders In Windows Explorer and so on. Sure, there are other means of accessing these, but the first thing users look at when attempting to modify settings, Is options via right-clicking.