鼠标右键添加 以管理员身份在此处打开命令行
已验证可以在win7上使用。
- 复制以下内容
- 新建一个记事本
- 粘进去保存
- 修改文件扩展名为.reg 【文末附文件下载】
- 双击运行
- 选择“是”

效果展示:
详细代码内容:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Open cmd here as Admin"
"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 cmd here as Admin"
"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 cmd here as Admin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
删除右键命令
按照上述步骤
- 新建一个记事本文件
- 粘贴以下代码
- 修改后缀名为.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]
两个文件下载地址
右键添加 管理员命令行
删除右键添加的管理员命令行
转载:https://blog.youkuaiyun.com/wanglb465/article/details/107329964/
Win7系统右键菜单添加管理员权限命令行
教程介绍了如何在Windows 7系统中通过注册表编辑器修改右键菜单,添加以管理员身份打开命令行的功能。详细步骤包括创建记事本文件,输入特定代码,保存为.reg文件,然后运行该文件以实现功能。同时提供了删除此右键命令的方法。适用于需要频繁以管理员权限运行命令行的用户。
507

被折叠的 条评论
为什么被折叠?



