How to add the Open Powershell Here option to the context menu on Windows
Microsoft introduced Powershell on Windows XP and has been "welcomed" by many users. Windows Powershell is the most powerful 'automatic' Windows tool that Microsoft provides, and it's not as boring as the Command Prompt.
To open and use Powershell faster and easier when needed, you can add the 'open Powershell here' option to the context menu - when you right-click. In the following article, Network Administrator will show you how to add the 'open Powershell here' option to the context menu on the Windows operating system.
Add the Open Powershell Here option to the context menu on Windows
To add the Open Powershell Here option to the context menu on Windows, follow the steps below:
1. To add the "open Powershell here" option to the context menu, you must edit the Windows Registry Editor.
To do this, first press the Windows + R key combination to open the Run command window, then enter "regedit" there and press Enter to open the Windows Registry Editor window.
2. On the Registry Editor window, in the left pane, navigate to the key:
HKEY_CLASSES_ROOTDirectoryshell
3. Next right-click the "shell" key and select New => Key . Name this new key 'powershell' .
4. Once done, right-click on the value Default in the right pane and select Modify.
5. This time on the screen displays the Edit String window. Here you enter "Open PowerShell Here" into the Value Data box and then click OK to close the window. This will display the Open PowerShell Here option when you right-click to open the context menu.
6. Next right-click on the sub key named Powershell , select New => Key to create a new sub key named " command".
7. Right-click the value Default in the sub-key Command and select Modify.
8. Now on the screen continue to display the Edit string window. Here you enter the path below into the Value Data box and then click OK to close the window:
C: Windowssystem32WindowsPowerShellv1.0powershell.exe -NoExit -Command Set-Location -LiteralPath '% L'
Note:
If your Windows installation drive is not a C drive, then you will have to change the drive in the above path. If you are using the Powershell version higher than version 1.0, then you will also have to change the version number (v1.0).
To "confirm" the version of Powershell you are using, navigate to C: WindowsSystem32WindowsPowerShell .
Finally close the Windows Registry Editor window and complete the process.
From now on whenever you want to open the Powershell window on your favorite folder or on the Desktop, just right-click it and select the "Open Powershell here" option from the context menu.
Work on to open the Powershell window at the location you requested, and you can do whatever you want with Powershell.
Refer to some of the following articles:
- Adjust screen resolution on Windows 10/8/7
- 8 "tweak" Windows Group Policy any Admin should know
- Cannot create a new user account on Windows 10, 8.1 and 8, this is how to fix it
Good luck!
You should read it
- How to add 'Open PowerShell window here as administrator' to the right-click menu on Windows 10
- How to add 'Edit or Run with' to the right-click menu of PS1 files
- About PowerShell
- Use PowerShell to download any file on Windows 10
- What is PowerShell Basic commands in PowerShell
- PowerShell command in Windows
- How to use PowerShell's default parameter to change the command behavior
- How to install PowerShell 7.0 in Windows 10/8/7
- How to add / remove 'Open in Windows Terminal' context menu in Windows 10
- The context menu of Windows 11 will have a new eye-catching design
- 10 PowerShell commands help you manage the remote computer most effectively
- This small application helps bring the context menu interface of Windows 10 to Windows 11
Maybe you are interested
Should I use PowerShell or Command Prompt?
This PowerShell script can bypass Windows 11 system requirements, Microsoft Account
Windows PowerShell Could Allow Viruses to Infiltrate Undetected
PowerShell and everything you need to know about it
How to copy, delete, move, rename files/folders using PowerShell on Windows PC
What is Windows PowerShell? How to use Windows PowerShell