How to run PowerShell with admin privileges from current folder?

Dominik picture Dominik · Nov 14, 2016 · Viewed 8.8k times · Source

How can I run PowerShell from Context menu (holding the shift key) in current folder with admin privileges? Is there a simpler way than type in any code to windows registry?

Answer

Jonas Andersen picture Jonas Andersen · Nov 15, 2016

As LotPings mentions in the comments, you can add a simple shortcut to the Quck Access Toolbar if you are running Windows 10. It's supported by Windows by default.

This image should explain how to set it up. Shortcut powershell-admin

While this doesn't use shift, you still have a quick way of starting PowerShell in the current directory as admin.