900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > 鼠标右键打开命令行cmd(管理员身份)

鼠标右键打开命令行cmd(管理员身份)

时间:2023-12-29 22:48:08

相关推荐

鼠标右键打开命令行cmd(管理员身份)

添加到注册表

将下面命令保存为reg文件:

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]@="Open command window here as Administrator""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]@="Open command window here as Administrator""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"=""@="Open command window here as Administrator"[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas\command]

保存 文件名为 Add_Open_Command_Window_Here_as_Administrator.reg

然后双击执行就可以了。

卸载

类似上面的,执行下面注册表命令就可以了:

Windows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\Directory\shell\runas][-HKEY_CLASSES_ROOT\Directory\Background\shell\runas][-HKEY_CLASSES_ROOT\Drive\shell\runas][-HKEY_CLASSES_ROOT\LibraryFolder\background\shell\runas]~

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。