If you’re looking for a way to remove items from right-click menu for files, folders, and the desktop, you can do it yourself with a little bit of registry hacking. This article will show you how to remove items from the right-click context menu on Desktop, file, and folder. We'll take remove "Open Command Prompt as Administrator" from the context menu as an example.
Important Note: Make sure to back up your registry in case something gets messed up.
To remove the Open Command Window Here (Administrator) option from the context menu for file and folder. Here's how:
Step 1: Open the Registry Editor.
Press Win+R keys to bring up the Run dialog, input regedit and then hit Enter key.
Step 2: In the Registry Editor, go to the following registry keys:
Step 3: Remove the entire key for that particular program by right-clicking and choosing Delete.
You can follow the same steps as shown above for Desktop, but this time it uses a different registry path. To remove Command Prompt(Admin) for right-clicking on Desktop, go to the following registry keys:
Remove the entire key for that particular program by right-clicking and choosing Delete.
Test it by right-clicking on the file. Make sure "Open Command Prompt (Administrator)" is removed.