Open Powershell as Administrator at Current File Explorer Directory Keyboard Shortcut (Windows 10)

10

5

Let's say that I'm browsing through Windows File Explorer, and suddenly I decide that I would like to open Powershell as administrator at the current directory (the directory that I'm at in File Explorer). Naturally, I'd like to open this as quickly as possible, so a keyboard shortcut to do this would be desirable.

I presume that this may only be possible to do with AutoHotKey, which I am open to using if necessary. Any way to create a keyboard shortcut to do this is what I want. So how can I achieve this?

ereHsaWyhsipS

Posted 2018-03-31T19:35:59.300

Reputation: 403

Answers

27

You can do this with the native method by simply clicking in the folder you wish to open Powershell as administrator from File Explorer, and then press AltFSA one key right after the other.

  1. Click in or on the folder which you want to open as administrator from PowerShell

    enter image description here

  2. Press Alt then F

    enter image description here

  3. Press S

    enter image description here

  4. Press A

    enter image description here

  5. Now PowerShell will open as administrator in that folder as requested.

    enter image description here

Pimp Juice IT

Posted 2018-03-31T19:35:59.300

Reputation: 29 425

8These drawings are completely wrong. 1) They're not red. 2) They're not freehand. 3) They're not circles. – Sombrero Chicken – 2018-04-01T12:57:51.403

7

@SombreroChicken 3) They are circles with corners. 2) Poster may have had a steady hand due to lack of alcohol. 1) It's not easy being green.

– Andrew Morton – 2018-04-01T15:11:37.970

2According to Pimp Juice IT Answer, here the german version: ALT -> D -> S -> A – Marco Hübers – 2019-07-18T12:50:23.673

1I just discovered that you can also add this button as a shortcut to your folder! Right click on the "Open as Admin" and select "Add to Quick Access Toolbar". Now Admin Powershell is a permanent part of my Explorer's top bar :) – Dana – 2019-10-29T14:37:35.703

5

Shift click while inside the folder and click 'Open PowerShell window here'

GIF

I'm not sure if this is what you wanted, but seeing the other response, this seems a lot easier...

Matt

Posted 2018-03-31T19:35:59.300

Reputation: 51

5Question asked about opening as administrator, which doesn't happen here, right? – palsch – 2018-04-01T13:29:35.670

@palsch It depends whether you're lo̶g̶g̶e̶d̶ ̶i̶n̶ ̶a̶s̶ ̶r̶o̶o̶t̶ using an admin %SHELL%. But almost certainly not. – wizzwizz4 – 2018-04-01T15:48:43.337