Is there a way to start PowerShell in a specific folder from Windows Explorer, e.g. to right-click in a folder and have an option like "Open PowerShell in this Folder"?
It's really annoying to have to change directories to my project folder the first time I run MSBuild every day.
Launch Task Manager: a quick way is to simultaneously press the Ctrl + Shift + Esc keys on your keyboard. If the Task Manager opens up in its compact mode, click or tap on "More details." Then, open the File menu and click or tap on "Run new task." In the "Create new task" window, type powershell and press Enter or OK.
In Windows Explorer, just go to the Address Bar at the top (keyboard shortcuts: Alt + D or Ctrl + L ) and type powershell or powershell_ise and press Enter . A PowerShell command window opens with the current directory.
Also, you can trigger PowerShell directly in Windows 11 Explorer. Just input “powershell” in the address bar of Windows Explorer and press Enter. Or, you can directly go to C:\Windows\System32\WindowsPowerShell\v1. 0, find the PowerShell or PowerShell ISE executable file, and double-click on it to run the PowerShell.
Press Windows+R to open the Run dialog box, and then type “powershell” in the text box. You can either click “OK” (or press the Enter) to open a regular PowerShell window, or press Ctrl+Shift+Enter to open an elevated PowerShell window.
In Windows Explorer, just go to the Address Bar at the top (keyboard shortcuts: Alt+D or Ctrl+L) and type powershell
or powershell_ise
and press Enter. A PowerShell command window opens with the current directory.
Just to add in the reverse as a trick, at a PowerShell prompt you can do:
ii .
or
start .
to open a Windows Explorer window in your current directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With