New
#1
Run as Administrator
I have a registry setting that adds an item to the explorer context menu.
When I right-click on a file I get a "Taboo" item in the menu.
This is the registry entry:
[HKEY_CLASSES_ROOT\*\shell\Taboo]
@="Taboo"
[HKEY_CLASSES_ROOT\*\shell\Taboo\command]
@="C:\\Windows\\System32\\bash.exe -i -c \"/mnt/c/apps/scripts/taboo '%1'\""
taboo is a shell script that runs under a bash shell.
It needs to run as Administrator because it runs diskpart.exe
But when invoked from the context menu it does NOT run as Administrator, so diskpart won't run: "Permission denied".
If I open a shell from a regular shortcut (with the "Run as Administrator" checkbox in the shortcut), I can run taboo, and it can run diskpart without error.
Question: Is there some modification to my registry setting that will cause bash (and taboo) to be invoked as Administrator?