- RD Gateway: Deployment options, workgroup, or domain joined - Wed, Aug 12 2020
- Analyze DHCP server with PowerShell - Mon, Aug 10 2020
- Pooling printers to load-balance print jobs - Mon, Jul 27 2020
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.