Open PowerShell window here context menu - Add in Windows 10  

Page 1 of 3 123 LastLast
    Open PowerShell window here context menu - Add in Windows 10

    Open PowerShell window here context menu - Add in Windows 10

    How to Add or Remove 'Open PowerShell window here' context menu in Windows 10
    Published by Category: Customization
    15 Jun 2021
    Designer Media Ltd

    How to Add or Remove 'Open PowerShell window here' context menu in Windows 10


    Windows 10 comes with Windows PowerShell 5.0 included.

    Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows.

    For more details about Windows PowerShell, see:

    This tutorial will show you how to add or remove the Open PowerShell window here context menu for all users in Windows 10.

    While you must be signed in as an administrator to add or remove the "Open PowerShell window here" context menu, all users can use the context menu.

    The "Open PowerShell window here" context menu will be available when you right click or shift + right click on a folder or drive, and when you right click or shift + right click on the background of a folder, drive, library background, or desktop.

    Starting with Windows 10 build 14986, the Open command window here context menu item has been removed by default and replaced with the Open PowerShell window here context menu item.


    EXAMPLE: "Open PowerShell window here" context menu
    Open PowerShell window here context menu - Add in Windows 10-open_powershell_window_here_context_menu.png
    Open PowerShell window here context menu - Add in Windows 10-open_powershell_window_here.jpg



    Here's How:

    1 Press the Win+R keys to open Run, type regedit, and press Enter to open Registry Editor.

    2 In Registry Editor, navigate to the location below. (see screenshot below)

    HKEY_CLASSES_ROOT\Directory\shell\Powershell

    Open PowerShell window here context menu - Add in Windows 10-regedit-1.png

    3 Change the owner of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below step 2)

    4 Set permissions of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below step 2)

    5 In Registry Editor, navigate to the location below. (see screenshot below step 2)

    HKEY_CLASSES_ROOT\Directory\shell\Powershell\command

    6 Change the owner of the command registry key in the left pane to be the Administrators group. (see screenshot below step 2)

    7 Set permissions of the command registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below step 2)

    8 In Registry Editor, navigate to the location below. (see screenshot below)

    HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell

    Open PowerShell window here context menu - Add in Windows 10-regedit-2.png

    9 Change the owner of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below step 8)

    10 Set permissions of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below step 8)

    11 In Registry Editor, navigate to the location below. (see screenshot below step 8)

    HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command

    12 Change the owner of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below step 8)

    13 Set permissions of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below step 8)

    14 In Registry Editor, navigate to the location below. (see screenshot below)

    HKEY_CLASSES_ROOT\Drive\shell\Powershell

    Open PowerShell window here context menu - Add in Windows 10-regedit_3.png

    15 Change the owner of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below step 14)

    16 Set permissions of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below step 14)

    17 In Registry Editor, navigate to the location below. (see screenshot below step 14)

    HKEY_CLASSES_ROOT\Drive\shell\Powershell\command

    18 Change the owner of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below step 14)

    19 Set permissions of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below step 14)


    20 Do step 21 (add-right click), step 22 (add-Shift+right click) , or step 23 (remove) below for what you would like to do.


    21 To Add Right Click "Open PowerShell window here" Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 24 below.

    Add_Open_PowerShell_window_here_context_menu.reg

    Download


    22 To Add Shift + Right Click "Open PowerShell window here" Context Menu

    This is the default setting.


    A) Click/tap on the Download button below to download the file below, and go to step 24 below.

    Add_Shift+Open_PowerShell_window_here_context_menu.reg

    Download


    23 To Remove "Open PowerShell window here" Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 24 below.

    Remove_Open_PowerShell_window_here_context_menu.reg

    Download


    24 Save the .reg file to your desktop.

    25 Double click/tap on the downloaded .reg file to merge it.

    26 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    27 You can now delete the downloaded .reg file if you like.


    That's it,
    Shawn






  1. Posts : 740
    Windows 10 x64 Pro
       #1

    any help in removing the default "open powershell window here" item from the shift-right click context menu? #myfavoriteforums <3
      My Computer


  2. Posts : 69,281
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello klepp, :)

    Using step 14 after doing steps 1-10 will remove it for you.
      My Computers


  3. Posts : 740
    Windows 10 x64 Pro
       #3

    ok, i just went straight to the reg file for removal :P will give the other steps a rip :)

    ty!

    edit: that did it. thanks a ton :) s'what i get for being hasty!
      My Computer


  4. Posts : 69,281
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    Great news.
      My Computers


  5. Posts : 61
    windows 10
       #5

    If you get a permission error when you try to change the "read, full control..." (ex: in regedit when changing the permission by right-clicking on the folder):



    • Change (temporarily) the owner as "administrators" or user (it's on the top of the advance windows, not in the list below!)
    • do what you want.
    • then set back the owner to "NT SERVICE\TrustedInstaller"
    Last edited by chok; 31 Oct 2018 at 07:12.
      My Computer


  6. Posts : 3
    Win 10
       #6

    I did not get a permissions error, but I want to make sure I understand correctly. Is it okay to change the permissions back after the .reg file is imported in general? The change will not revert? Is there any security risk involved in leaving it as is?

    Thank you.
      My Computer


  7. Posts : 69,281
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    Hello @yenlegion, and welcome to Ten Forums.

    Changing the keys' permissions is only needed to allow the downloaded .reg file to add the values for the context menu.

    Afterwards, you can change the permissions back if wanted without affecting the context menu.
      My Computers


  8. Posts : 61
    windows 10
       #8

    I had to do it again in a fresh install, to make it work. The step above did not work. I also had to edit the permission of the child key ("command") because the owner of the child was still set to "TrustedInstaller" .

    (I tried to use the "inheritance" button, but apparently it doesnt do that).
    I found out (after it!) that, after changing the owner, I needed to check the box just under the new owner "replace owner on subcontainers and object".

    I wonder if there a way to simply force the registry to change the key without having to do the whole thing...
    Last edited by chok; 30 May 2019 at 01:14.
      My Computer


  9. Posts : 69,281
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    chok said:
    I had to do it again in a fresh install, to make it work. The step above did not work. I also had to edit the permission of the child key ("command") because the owner of the child was still set to "TrustedInstaller" .

    (I tried to use the "inheritance" button, but apparently it doesnt do that).
    I found out (after it!) that, after changing the owner, I needed to check the box just under the new owner "replace owner on subcontainers and object".

    I wonder if there a way to simply force the registry to change the key without having to do the whole thing...

    Hello chok,

    Sorry, but no. You'll have to go through the steps to change the owner and permissions first to be able to successfully merge the .reg file.
      My Computers


 

Tutorial Categories

Open PowerShell window here context menu - Add in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 03:44.
Find Us




Windows 10 Forums