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:
- 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:
You are done.
To make the command visible again, just remove the ProgrammaticAccessOnly string parameter you created.