文件夹内鼠标右键添加cmd管理员启动
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="Open CMD window here as Admin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
文件夹内鼠标右键添加powershell管理员启动
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\sail_powershell]
@="Open PowerShell window here as Admin"
"icon"="powershell.exe"
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\Background\shell\sail_powershell\command]
@="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\\"-NoExit\\\", \\\"-Command Set-Location -literalPath '%V'\\\" -verb RunAs"