SOLVED

Powershell run as Admin - context menu

Copper Contributor

Hello

Is it possible to add "Run as administrator" to the context menu when right clicking on a powershell script? I am using Windows 11, the Classic context menu.

 

The following does not work anymore:

https://www.top-password.com/blog/tag/right-click-run-with-powershell-as-administrator/

 

image.png

 

Greetings Int3g3r

1 Reply
best response confirmed by Int3g3rWork (Copper Contributor)
Solution

I'm having a love/hate relationship with the new PS and WSL development in 11 Pro and it's starting to get silly how many times I've had to manually regedit my own workarounds for things like this. I was early on the Win 11 Pro upgrade last December and they have come a long way in these past several months, but some things still need to ripen.

Anyway, try this (or check out the other dozen or so PS context-menu-registry-hack solutions for closely related fixes where the registry keys and hive will be very nearby too for some poking around): https://www.tenforums.com/tutorials/64349-run-administrator-add-ps1-file-context-menu-windows-10-a.h...

1 best response

Accepted Solutions
best response confirmed by Int3g3rWork (Copper Contributor)
Solution

I'm having a love/hate relationship with the new PS and WSL development in 11 Pro and it's starting to get silly how many times I've had to manually regedit my own workarounds for things like this. I was early on the Win 11 Pro upgrade last December and they have come a long way in these past several months, but some things still need to ripen.

Anyway, try this (or check out the other dozen or so PS context-menu-registry-hack solutions for closely related fixes where the registry keys and hive will be very nearby too for some poking around): https://www.tenforums.com/tutorials/64349-run-administrator-add-ps1-file-context-menu-windows-10-a.h...

View solution in original post