|
把以下代码保存为,批处理双击运行即可,文件编码一定是ansi,别问为什么
REG ADD "HKCR\Directory\Background\shell\RunAs" /ve /t REG_SZ /d "@shell32.dll,-8506" /f
REG ADD "HKCR\Directory\Background\shell\RunAs" /v "Description" /t REG_SZ /d "@shell32.dll,-37445" /f
REG ADD "HKCR\Directory\Background\shell\RunAs" /v "Icon" /t REG_SZ /d "imageres.dll,-5324" /f
REG ADD "HKCR\Directory\Background\shell\RunAs" /v "MUIVerb" /t REG_SZ /d "@shell32.dll,-37444" /f
REG ADD "HKCR\Directory\Background\shell\RunAs" /v "NoWorkingDirectory" /t REG_SZ /d "" /f
REG ADD "HKCR\Directory\Background\shell\RunAs\command" /ve /t REG_SZ /d "cmd.exe /s /k pushd \"%%V\"" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "CanonicalName" /t REG_SZ /d "{ADB73FFC-1568-4D7D-BCD5-6D11A417AF64}" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "CommandStateSync" /t REG_SZ /d "" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "Description" /t REG_SZ /d "@shell32.dll,-37449" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "ExplorerCommandHandler" /t REG_SZ /d "{BF0AC53F-D51C-419F-92E3-2298E125F004}" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "Icon" /t REG_SZ /d "imageres.dll,-5373" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "ImpliedSelectionModel" /t REG_DWORD /d "1" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "MUIVerb" /t REG_SZ /d "@shell32.dll,-37448" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "ResolveLinksInvokeBehavior" /t REG_DWORD /d "3" /f
REG ADD "HKCR\Directory\Background\shell\Windows.PowershellAsAdmin" /v "ResolveLinksQueryBehavior" /t REG_DWORD /d "0" /f
也可以把以下内容保存为.reg的注册表文件双击导入也行
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Windows.PowershellAsAdmin]
"CanonicalName"="{ADB73FFC-1568-4D7D-BCD5-6D11A417AF64}"
"CommandStateSync"=""
"Description"="@shell32.dll,-37449"
"ExplorerCommandHandler"="{BF0AC53F-D51C-419F-92E3-2298E125F004}"
"Icon"="imageres.dll,-5373"
"ImpliedSelectionModel"=dword:00000001
"MUIVerb"="@shell32.dll,-37448"
"ResolveLinksInvokeBehavior"=dword:00000003
"ResolveLinksQueryBehavior"=dword:00000000
[HKEY_CLASSES_ROOT\Directory\Background\shell\RunAs]
@="@shell32.dll,-8506"
"Description"="@shell32.dll,-37445"
"Icon"="imageres.dll,-5324"
"MUIVerb"="@shell32.dll,-37444"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\RunAs\command]
@="cmd.exe /s /k pushd \"%V\""
附蓝奏https引号//baolizhu点lanzouu点com/i6z5o2rh31ri |
评分
-
查看全部评分
|