Published by


Brink's Avatar
Administrator

Posts: 20,778

Show Printable Version 


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

information   Information
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 a Open PowerShell window here context menu for all users in Windows 10.

Note   Note
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, 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
Click image for larger version. 

Name:	Open_PowerShell_window_here_context_menu.png 
Views:	116 
Size:	40.8 KB 
ID:	96068
Click image for larger version. 

Name:	PowerShell.png 
Views:	76 
Size:	16.1 KB 
ID:	113156



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

Click image for larger version. 

Name:	Regedit-1.png 
Views:	100 
Size:	94.7 KB 
ID:	113162

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)

HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell

Click image for larger version. 

Name:	Regedit-2.png 
Views:	63 
Size:	88.9 KB 
ID:	113163

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

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

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

HKEY_CLASSES_ROOT\Drive\shell\Powershell

Click image for larger version. 

Name:	Regedit_3.png 
Views:	79 
Size:	108.6 KB 
ID:	113164

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 9)

11. Do step 12 (add-right click), step 13 (add-Shift+right click) , or step 14 (remove) below for what you would like to do.


 12. 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 15 below.

Add_Open_PowerShell_window_here_context_menu.reg

download


 13. To Add Shift + 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 15 below.

Add_Shift+Open_PowerShell_window_here_context_menu.reg

download


 14. To Remove "Open PowerShell window here" Context Menu

NOTE: This is the default setting.

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

Remove_Open_PowerShell_window_here_context_menu.reg

download

15. Save the .reg file to your desktop.

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

17. If prompted, click on Run, Yes (UAC), Yes, and OK to approve the merge.

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



That's it,
Shawn