remove open powershell here context menu – Password Recovery https://www.top-password.com/blog Provide useful password recovery tricks, guides and software Wed, 05 Sep 2018 06:33:29 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.1 How to Remove “Open PowerShell window here” Context Menu in Windows 10 https://www.top-password.com/blog/remove-open-powershell-window-here-context-menu-in-windows-10/ Wed, 05 Sep 2018 06:29:06 +0000 https://www.top-password.com/blog/?p=12704 On Windows 10, you can access the “Open PowerShell window here” context menu by holding down the SHIFT key and then right-clicking a folder. This lets you quickly open PowerShell in the current folder without having to change the working directory.

If you’re a fan of using Command Prompt rather than Windows PowerShell, let’s see how to remove “Open PowerShell window here” context menu in Windows 10.

How to Remove “Open PowerShell window here” Context Menu in Windows 10

  1. Use the Windows key + R keyboard shortcut to open the Run command. Type regedit and hit Enter.

  2. Go to the following location in the Registry Editor window that appears:
    HKEY_CLASSES_ROOT\Directory\shell\Powershell

    By default, the “Powershell” key is protected and none of its values can be modified. You have to take ownership of this registry key and assign full permissions to your account.

  3. Right-click the “Powershell” key in the left pane and then select New -> String Value.

  4. Name the new string “ProgrammaticAccessOnly“, and leave its value data empty.

  5. Now you’ve successfully removed “Open PowerShell window here” in the context menu when you press SHIFT and then right-click any folder.

If you want to continue removing “Open PowerShell window here” from the right-click menu for Drives and Directory background, repeat the steps above for the following registry keys:

HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell
HKEY_CLASSES_ROOT\Drive\Background\shell\Powershell

Whenever you need to restore the “Open PowerShell window here” context menu, just delete the ProgrammaticAccessOnly entry from the above registry locations and you’re done.

]]>