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

administratorautohotkeykeyboard shortcutspowershellwindows 10

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?

Best Answer

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.

  • German version: AltDSA
  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

Related Question