Skip to content

Instantly share code, notes, and snippets.

@aqzlpm11
Last active October 22, 2021 06:20
Show Gist options
  • Save aqzlpm11/ddadb6bcb26719b2676fd9650571768e to your computer and use it in GitHub Desktop.
Save aqzlpm11/ddadb6bcb26719b2676fd9650571768e to your computer and use it in GitHub Desktop.
鼠标右键打开命令行cmd(管理员身份)
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open command window here as Administrator"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="在此打开CMD窗口(管理员)"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\runas]
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="在此打开CMD窗口(管理员)"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]
"HasLUAShield"=""
@="在此打开CMD窗口(管理员)"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment