- Activate BitLocker with manage-bde, PowerShell, or WMI - Wed, Sep 20 2023
- Join Azure Active Directory with Windows 11 - Tue, Sep 12 2023
- Manage enhanced security mode in Microsoft Edge using Group Policy - Fri, Sep 8 2023
PowerShell allows you to start Explorer from a directory, but it lacks a comparable feature for the other direction. If you right-click a folder while pressing CTRL + SHIFT, Explorer only shows a link for the command prompt.
“Open command window here” in File Explorer
Adding a PowerShell command to Explorer
Considering that cmd.exe is losing significance, it would have been appropriate if Microsoft replaced the old shell with the new one in Windows 10.
The free PowerShell Prompt tool from Scott Hanselman closes this gap. The tool consists only of an .inf file that adds the required registry keys to extend the File Explorer context menu. Note that you don’t have to press CTRL + SHIFT to make the PowerShell link appear in the context menu; simply right-clicking the folder is enough.
“PowerShell Prompt Here” in the File Explorer context menu
Adapting the .inf file
Before you run the command Install from the .inf file’s context menu, you might want to check two things. First, the section [PowerShellHere.Reg] contains the path to powershell.exe. You have to adjust this path if the program file is not located in the default folder
Second, by default, the command PowerShell Prompt Here will be added to the context menu. If you prefer other text, you can change the value of PowerShellHereAccel in the section [Strings].
You can remove the context menu entry in Explorer through Control Panel > Programs > Programs and Features. PowerShell Prompt Here can be downloaded from the author’s website.
FYI, it is enough to hold only SHIFT while right-clicking to open command prompt.