16 Nov 2018

Add PowerShell Context Menu to Windows Explorer

Do you want to get this in your laptop?

image

Here is what you should do. Open regedit.

image

Navigate to HKEY_CLASSES_ROOT\Directory. You will need to focus on 2 keys, Background\shell and shell alone.

image

Background\shell basically to control when you are right-clicking at nothing inside a folder.

D1AF38B4-E1D5-41E8-8E0D-32837C4AE45A

Lastly, you can copy the code below and save it with .reg extension.


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellHere]
@="Open PowerShell Here"
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellHere\command]
@="powershell.exe -noexit"

[HKEY_CLASSES_ROOT\Directory\shell\PowerShellHere]
@="Open PowerShell Here"
"Icon"="%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"

[HKEY_CLASSES_ROOT\Directory\shell\PowerShellHere\command]
@="powershell.exe -noexit -command Set-Location '%V'"