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.

 

  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.

One thought on “Remove Open PowerShell window here from Context Menu in Windows 10

  1. Henry

    Install

    Like or Dislike: Thumb up 2 Thumb down 1

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *