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-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
- Day of 2026-06-15: Operational Improvements On and Off the Blockchain
- Day of 2026-06-09: Soles and other shoes
- Day of 2026-06-08: Market Distortions From the Bridge Issue
- Day of 2026-05-25: Low 🔋, minimal Necessary 🏃♂️
- Day of 2026-05-24: Long Weekend & Deliberate Downtime
- Day of 2026-05-20: Operational failures & Prioritization
- Day of 2026-05-19: Sustaining Process Through a hectic period
- Day of 2026-05-10: Managing a Hectic Week Before Mother’s Day
- Day of 2026-04-27: Hectic phase
- Day of 2026-04-21: physical environment & direction over scale
- Day of 2026-04-19: signal from automation
- Day of 2026-04-18: stepping back when needed
- Day of 2026-04-15: adopting and changing customer base
- Day of 2026-04-15: new office, operational readiness