Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add "open elevated prompt" shift+right-click contextmenu of folders
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open elevated command window here"
"Extended"=""
"NoWorkingDirectory"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Open elevated command window here"
"Extended"=""
"NoWorkingDirectory"=""
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
"HideBasedOnVelocityId"=-
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
"HideBasedOnVelocityId"=-
[HKEY_CLASSES_ROOT\Directory\shell\Powershell]
"ShowBasedOnVelocityId"=-
"HideBasedOnVelocityId"=dword:639bc8
[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell]
"ShowBasedOnVelocityId"=-
"HideBasedOnVelocityId"=dword:639bc8
@ZoolWay

This comment has been minimized.

@ZoolWay

This comment has been minimized.

Copy link
Owner Author

commented Sep 2, 2018

Added more entries to remove migration from cmd to powershell with creator update. But those lines (see VelocityId) only work when you make yourself owner and set permissions on the 4 paths in the registry :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.