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?
You can open Windows PowerShell with administrator privileges from Run. First, press Windows+R to open Run, and then type “powershell” in the text box. Next, press Ctrl+Shift+Enter. Windows PowerShell will open in admin mode.
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 Alt F S A one key right after the other.
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.
While this doesn't use shift, you still have a quick way of starting PowerShell in the current directory as admin.
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