Latest posts by Wolfgang Sommergut (see all)
- Windows 10 1909: The most important changes for professional users - Mon, Nov 18 2019
- Virtualize user profiles with Microsoft's FSLogix Profile Container - Wed, Nov 6 2019
- FSLogix: Alternative to roaming profiles, user profile disks, and offline files - Mon, Nov 4 2019
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.