Starting with Windows 10 build 14986, which represents Windows 10 Creators Update, Microsoft replaced the context menu command "Open command window here" with PowerShell by default in File Explorer. We already saw how you can get the command prompt back in the context menu. Today, we'll see how to remove the "Open PowerShell window here" menu item with a simple Registry tweak.
If you have restored the "Open command window here" command in the context menu of the File Explorer app, you might want to get rid of the related "Open Powershell window here" menu item. Here is how it can be done.
To remove Open PowerShell window here from context menu, do the following.
- Open Registry Editor.
- Go to the following Registry key:
HKEY_CLASSES_ROOT\Directory\shell\Powershell
Tip: How to jump to the desired registry key with one click.
- Take ownership of this key to modify its permissions.
- Add "Full control" to permissions of Administrators:
- Under the Powershell subkey, create a new string value called ProgrammaticAccessOnly. Don't set any value data, just leave it empty.
- The "Open Powershell window here" item will be hidden in the folder context menu of Windows 10:
Now, repeat the steps above under the following Registry keys:
HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell HKEY_CLASSES_ROOT\Drive\Background\shell\Powershell
You are done.
To make the command visible again, just remove the ProgrammaticAccessOnly string parameter you created.
That's it.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!
Advertisеment
Install
It doesn’t seem to work anymore, at least in Windows 10 21H2, even deleting the whole PowerShell subkey still makes the darn thing appear.
Did you do it in all 3 locations? It didnt work for me until I did all 3 locations…
How does it work in Windows 11?
in the same way like on Windows 10