Advertisement

Remove Open PowerShell window here from Context Menu in Windows 10

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.

  1. Open Registry Editor.
  2. Go to the following Registry key:
    HKEY_CLASSES_ROOT\Directory\shell\Powershell

    Tip: How to jump to the desired registry key with one click.

  3. Take ownership of this key to modify its permissions.
  4. Add "Full control" to permissions of Administrators:
  5. Under the Powershell subkey, create a new string value called ProgrammaticAccessOnly. Don't set any value data, just leave it empty.
  6. 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!

Advertisment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

3 thoughts on “Remove Open PowerShell window here from Context Menu in Windows 10”

  1. 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.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.