Home  >  Article  >  System Tutorial  >  Remove Command Window Here (Administrator) from Context Menu in Windows 10

Remove Command Window Here (Administrator) from Context Menu in Windows 10

WBOY
WBOYOriginal
2024-08-05 21:10:42877browse

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.


  • Option 1: Remove items from the context menu on the folder
  • Option 2: Remove items from the context menu on Desktop

Remove Items from File Right-Click Context Menu on File/Folder

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.

Remove Command Window Here (Administrator) from Context Menu in Windows 10

Step 2: In the Registry Editor, go to the following registry keys:

HKEY_CLASSES_ROOTDirectoryshellrunas
HKEY_CLASSES_ROOTDirectoryshellrunascommand

Step 3: Remove the entire key for that particular program by right-clicking and choosing Delete.

Remove Command Window Here (Administrator) from Context Menu in Windows 10

Remove Command Prompt (Administrator) from Context Menu for Desktop

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:

HKEY_CLASSES_ROOTdirectoryBackgroundShellrunas

HKEY_CLASSES_ROOTdirectoryBackgroundShellrunascommand

Remove the entire key for that particular program by right-clicking and choosing Delete.

Remove Command Window Here (Administrator) from Context Menu in Windows 10

Test it by right-clicking on the file. Make sure "Open Command Prompt (Administrator)" is removed.

Remove Command Window Here (Administrator) from Context Menu in Windows 10

The above is the detailed content of Remove Command Window Here (Administrator) from Context Menu in Windows 10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn