Run PowerShell scripts as Administrator from Explorer context menu
Sometimes Windows is lacking options in the context menu, i. e. executing PowerShell scripts with administrative privileges.
The explorer context menu doesn't provide an option for start the PowerShell with administrative privileges, it provide only the option to execute PowerShell scripts.
The Widnows Regristy - broken as it is - provides the tools to enable this.
For with this run with Win+R "regedit" and navigate to the path: HKCR:\Microsoft.PowerShellScript.1\Shell\.
Add new Folder/Key with text which needs to be displayed as value. (i.g. "Run as Administrator").
Under this create a Folder/Key called "Command" and place a default key and but this value to it:
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-Command" ""& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -File "%1"' -Verb RunAs}"
Final Result
Or just use the PowerShell for that - but make sure that the PowerShell in run with administrative privileges. The script can find here
Leave Run PowerShell scripts as Administrator from Explorer context menu to:
Read more #windows posts
Best Posts From Master Lamps
We have not curated any of master-lamps's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From Master Lamps
- Day of 2026-07-22: Project Lifecycle & Strategic Shifts
- Day of 2026-07-12: Strategy, Allocation, & Market Flow
- Day of 2026-07-10: Infrastructure and Asset Management
- Day of 2026-07-05: Weekend Notes, Politics, Passive Income & Portfolio Update
- Day of 2026-06-28: Hump Day & HPUD & Continuing 2 Build
- Day of 2026-06-28: infrastructure & operational friction
- Day of 2026-06-25: When SME Captains Go Off Script
- Day of 2026-06-22: Gears Turning Down After a Strong Weekend
- Day of 2026-06-21: back above 5 Cents
- Day of 2026-06-19: Weekend Through the Valley of the Dump, any Weekend