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:

    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:


You are done.
To make the command visible again, just remove the ProgrammaticAccessOnly string parameter you created.
That's it.

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

Leave a Reply

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