中关村W10系统右键中添加【获取管理员权限】手动添加reg到注册表
W10 W10中有可能误操作导致某些文件目录需要获得管理员权限才能删除或者是更改,因此需要获得管理员权限。但是刚装的系统中,右键中是没有“获取管理员权限”的菜单项的,因此需要手动添加:
通过新建一个“获取管理员权限.reg”的文件,用编辑器打开后复制进去下面的内容,保存双击添加到注册表中即可:
Xml代码
代码如下:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="获取管理员权限"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="获取管理员权限"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="获取管理员权限"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y & icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y & icacls \"%1\" /grant administrators:F /t"
- 专题推荐
- 深度技术系统推荐
- 1深度技术Ghost Win10x86 全新纯净版v2020.11(无需激活)
- 2深度技术Ghost Win10 (64位) 电脑城纯净版v2019.02(绝对激活)
- 3深度技术Ghost Win10 (32位) 安全稳定版2017V02(免激活)
- 4深度技术 Ghost Win10 x86 企业版 2018V11 (免激活)
- 5深度技术Win10 64位 万能纯净版 v2020.04
- 6深度技术Ghost Win10 (32位) 企业纯净版v2017.09(免激活)
- 7深度技术 Ghost Win10 64位 五一企业装机版 2016.05
- 8深度技术Ghost Win10 64位 极速专业版 V202007(免激活)
- 9深度技术Ghost Win10 x64位 多驱动纯净版2019V08(绝对激活)
- 10深度技术Ghost Win10 X32增强修正版2017V01(绝对激活)
- 深度技术系统教程推荐
- 1深度技术win8.1系统实现3D切换页面的方法和无法实现的原因是什么
- 2Word如何删除页码?Word怎么取消页码的方法
- 3windows10系统弹出提示“shell infrastructure Host已停止工作”的设
- 4技术员联盟Win10系统电脑怎么才能获取更多小工具
- 5如何将谷歌浏览器书签导入到IE7/8/9/10/11收藏夹?
- 6深度技术Win10系统电脑组策略如何巧设方法
- 7Syskey命令设置小白Win10系统启动密码的操作步骤
- 8WIN8系统电脑输入法无法切换如何解决的技巧
- 9绝对激活2019win10密钥 win10序列号 win10神key
- 10笔记本Win7系统视频文件无法添加到媒体播放器怎么办