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

<p class="callout info">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:</p>

- <p class="callout info">[**What's New in Windows PowerShell**](https://technet.microsoft.com/en-us/library/hh857339.aspx)</p>

<p class="callout info">**This tutorial will show you how to add or remove the Open PowerShell window here context menu for all users in Windows 10.**</p>

<p class="callout warning">**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](https://www.tenforums.com/windows-10-news/71787-announcing-windows-10-insider-preview-build-14986-pc.html), the [Open command window here](https://www.tenforums.com/tutorials/72024-open-command-window-here-add-windows-10-a.html) context menu item has been removed by default and replaced with the Open PowerShell window here context menu item.**</p>

**<span style="font-size: x-large;">Here's How:</span>  
  
<span class="bbnum">1</span> Press the Win+R keys to open Run, type regedit, and press Enter to open Registry Editor.  
  
<a class="anchor" name="step2"></a><span class="bbnum">2</span> In Registry Editor, navigate to the location below. (see screenshot below)**

<div id="bkmrk-hkey_classes_root%5Cdi">  
**HKEY\_CLASSES\_ROOT\\Directory\\shell\\Powershell**  
  
![Open PowerShell window here context menu - Add in Windows 10-regedit-1.png](https://www.tenforums.com/attachments/tutorials/248022d1568908726-open-powershell-window-here-context-menu-add-windows-10-a-regedit-1.png "Open PowerShell window here context menu - Add in Windows 10-regedit-1.png")</div> **<span class="bbnum">3</span> [Change the owner](https://www.tenforums.com/tutorials/3587-owner-files-folders-change-windows-10-a.html#option4) of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below [step 2](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step2))  
  
<span class="bbnum">4</span> [Set permissions](https://www.tenforums.com/tutorials/88436-change-permissions-objects-users-groups-windows-10-a.html) of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below [step 2](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step2))  
  
<span class="bbnum">5</span> In Registry Editor, navigate to the location below. (see screenshot below [step 2](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step2))**

<div id="bkmrk-hkey_classes_root%5Cdi-0">  
**HKEY\_CLASSES\_ROOT\\Directory\\shell\\Powershell\\command**</div> **<span class="bbnum">6</span> [Change the owner](https://www.tenforums.com/tutorials/3587-owner-files-folders-change-windows-10-a.html#option4) of the command registry key in the left pane to be the Administrators group. (see screenshot below [step 2](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step2))  
  
<span class="bbnum">7</span> [Set permissions](https://www.tenforums.com/tutorials/88436-change-permissions-objects-users-groups-windows-10-a.html) of the command registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below [step 2](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step2))  
  
<a class="anchor" name="step8"></a><span class="bbnum">8</span> In Registry Editor, navigate to the location below. (see screenshot below)**

<div id="bkmrk-hkey_classes_root%5Cdi-1">  
**HKEY\_CLASSES\_ROOT\\Directory\\Background\\shell\\Powershell**  
  
![Open PowerShell window here context menu - Add in Windows 10-regedit-2.png](https://www.tenforums.com/attachments/tutorials/248023d1568908726-open-powershell-window-here-context-menu-add-windows-10-a-regedit-2.png "Open PowerShell window here context menu - Add in Windows 10-regedit-2.png")</div> **<span class="bbnum">9</span> [Change the owner](https://www.tenforums.com/tutorials/3587-owner-files-folders-change-windows-10-a.html#option4) of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below [step 8](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step8))  
  
<span class="bbnum">10</span> [Set permissions](https://www.tenforums.com/tutorials/88436-change-permissions-objects-users-groups-windows-10-a.html) of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below [step 8](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step8))  
  
<span class="bbnum">11</span> In Registry Editor, navigate to the location below. (see screenshot below [step 8](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step8))**

<div id="bkmrk-hkey_classes_root%5Cdi-2">  
**HKEY\_CLASSES\_ROOT\\Directory\\Background\\shell\\Powershell\\command**</div> **<span class="bbnum">12</span> [Change the owner](https://www.tenforums.com/tutorials/3587-owner-files-folders-change-windows-10-a.html#option4) of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below [step 8](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step8))  
  
<span class="bbnum">13</span> [Set permissions](https://www.tenforums.com/tutorials/88436-change-permissions-objects-users-groups-windows-10-a.html) of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below [step 8](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step8))  
  
<a class="anchor" name="step14"></a><span class="bbnum">14</span> In Registry Editor, navigate to the location below. (see screenshot below)**

<div id="bkmrk-hkey_classes_root%5Cdr">  
**HKEY\_CLASSES\_ROOT\\Drive\\shell\\Powershell**  
  
![Open PowerShell window here context menu - Add in Windows 10-regedit_3.png](https://www.tenforums.com/attachments/tutorials/248024d1568908726-open-powershell-window-here-context-menu-add-windows-10-a-regedit_3.png "Open PowerShell window here context menu - Add in Windows 10-regedit_3.png")</div> **<span class="bbnum">15</span> [Change the owner](https://www.tenforums.com/tutorials/3587-owner-files-folders-change-windows-10-a.html#option4) of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below [step 14](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step14))  
  
<span class="bbnum">16</span> [Set permissions](https://www.tenforums.com/tutorials/88436-change-permissions-objects-users-groups-windows-10-a.html) of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below [step 14](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step14))  
  
<span class="bbnum">17</span> In Registry Editor, navigate to the location below. (see screenshot below [step 14](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step14))**

<div id="bkmrk-hkey_classes_root%5Cdr-0">  
**HKEY\_CLASSES\_ROOT\\Drive\\shell\\Powershell\\command**</div> **<span class="bbnum">18</span> [Change the owner](https://www.tenforums.com/tutorials/3587-owner-files-folders-change-windows-10-a.html#option4) of the Powershell registry key in the left pane to be the Administrators group. (see screenshot below [step 14](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step14))  
  
<span class="bbnum">19</span> [Set permissions](https://www.tenforums.com/tutorials/88436-change-permissions-objects-users-groups-windows-10-a.html) of the Powershell registry key in the left pane to "Allow" the Administrators group "Full control". (see screenshot below [step 14](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step14))  
  
  
<span class="bbnum">20</span> Do [step 21](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#21) (add-right click), [step 22](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#22) (add-Shift+right click) , or [step 23](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#23) (remove) below for what you would like to do.**

<div id="bkmrk-21%C2%A0to-add-right-clic"><span class="secnum">21</span> To Add Right Click "Open PowerShell window here" Context Menu</div><p class="callout info">A) Click/tap on the Download button below to download the file below, and go to [**step 24**](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step24) below.  
  
**Add\_Open\_PowerShell\_window\_here\_context\_menu.reg**  
  
[<span class="dlbtn"> Download</span>](https://www.tenforums.com/attachments/tutorials/316229d1611683954-open-powershell-window-here-context-menu-add-windows-10-a-add_open_powershell_window_here_context_menu.reg)</p>

<div id="bkmrk-"></div><div id="bkmrk--0"></div><div id="bkmrk-22%C2%A0to-add-shift-%2B-ri">**<span class="secnum">22</span> To Add Shift + Right Click "Open PowerShell window here" Context Menu**</div><div id="bkmrk--1"></div><p class="callout info">A) Click/tap on the Download button below to download the file below, and go to [**step 24**](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step24) below.  
  
**Add\_Shift+Open\_PowerShell\_window\_here\_context\_menu.reg**  
  
[<span class="dlbtn"> Download</span>](https://www.tenforums.com/attachments/tutorials/316230d1611683954-open-powershell-window-here-context-menu-add-windows-10-a-add_shift-open_powershell_window_here_context_menu.reg)</p>

<div id="bkmrk--2"></div><div id="bkmrk--3"></div><div id="bkmrk-23%C2%A0to-remove-%22open-p">**<span class="secnum">23</span> To Remove "Open PowerShell window here" Context Menu**</div><p class="callout info">A) Click/tap on the Download button below to download the file below, and go to [**step 24**](https://www.tenforums.com/tutorials/60175-open-powershell-window-here-context-menu-add-windows-10-a.html#step24) below.  
  
**Remove\_Open\_PowerShell\_window\_here\_context\_menu.reg**  
  
[<span class="dlbtn"> Download</span>](https://www.tenforums.com/attachments/tutorials/113168d1481415582-open-powershell-window-here-context-menu-add-windows-10-a-remove_open_powershell_window_here_context_menu.reg)</p>

 **<span class="bbnum">24</span> Save the .reg file to your desktop.  
  
<span class="bbnum">25</span> Double click/tap on the downloaded .reg file to merge it.  
  
<span class="bbnum">26</span> When prompted, click/tap on Run, Yes ([UAC](https://www.tenforums.com/tutorials/3577-change-user-account-control-uac-settings-windows-10-a.html)), Yes, and OK to approve the merge.  
  
<span class="bbnum">27</span> You can now delete the downloaded .reg file if you like.**