在此处打开命令窗口(管理员)
cmd
1 2 3 4 5 6 7 8 9 10
| Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas] @="@shell32.dll,-8506" "NoWorkingDirectory"="" "ShowBasedOnVelocityId"=dword:00639bc8 "HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] @="cmd.exe /s /k pushd \"%V\""
|
powershell
1 2 3 4 5 6 7 8 9 10
| Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas] @="@shell32.dll,-8508" "NoWorkingDirectory"="" "ShowBasedOnVelocityId"=dword:00639bc8 "HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] @="\"C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\\"-NoExit\\\", \\\"-Command Set-Location -literalPath '%V'\\\" -verb RunAs"
|
相关解释
项(K)
runas
管理员运行
command
运行时执行的命令
字符串值(S) (REG_SZ)
(默认)
显示的名称
Extended
是否 shift 扩展
HasLUAShield
是否显示用户账户控制图标
NoWorkingDirectory
暂时未知
DWORD(32位)值 (D)
ShowBasedOnVelocityId
暂时未知