Powershell with Admin level in the context menu of Windows ??

Joined
Jun 2, 2018
Messages
12
Reaction score
0
Hello all(e) and all ! Oh ! I thin in English does not work ;)
I really like the ability to open a folder or disk (see my screenshots) in the powershell with the context menu of Windows with the shift key.
But alas, it only works in user mode, not in Administrator mode...
The command used on Registery for the context menu is like :

[HKEY_CLASSES_ROOT\Directory\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
and
[HKEY_CLASSES_ROOT\Drive\shell\Powershell\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"


Is it possible to have the same command in administrator mode ?
It's for add to the registery of my Windows 10...
I do not want to go through the start menu or search Cortana. That I know how to do:p
I do not want a silent mode either, just opening in admin mode with the habitual warning message !

Thanks in advance for your suggestions
A+
Jean-Claude
Disk -> Menu Contextuel 2.png
Folder -> Menu Contextuel.png
 
Joined
Sep 26, 2017
Messages
3,446
Reaction score
616
Don't know if it helps but for my needs I didn't put it in any context menu but right-clicked the Start button, clicked Windows PowerShell (Admin) to open it then right-clicked the icon on the Taskbar and chose Pin to taskbar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top