27.1k views
4 votes
How to open powershell from file explorer

User TimW
by
7.4k points

1 Answer

3 votes

Final answer:

To open PowerShell directly from File Explorer, simply type 'powershell' in the File Explorer address bar and press Enter. To open it as an administrator, hold Shift, right-click in the directory, and select 'Open PowerShell window here as administrator'.

Step-by-step explanation:

To open PowerShell from File Explorer, you can use a simple shortcut method. First, open File Explorer. Once you are in the directory where you wish to use PowerShell, click on the address bar to highlight it or press Alt + D to jump to it directly. Then, simply type powershell, and press Enter. This action will launch PowerShell with the path set to the current directory in File Explorer.

Alternatively, if you'd like to open PowerShell as an administrator from File Explorer, you need to hold down the Shift key and right-click on a blank space within the folder that you are currently in. In the context menu that pops up, you will see the option 'Open PowerShell window here as administrator'. Clicking on this option will launch PowerShell with administrative privileges. It is important to note that you must have administrative access on your computer to use this feature.

User Qezt
by
7.5k points