win7右键中添加\"获取管理员权限\"

2025-10-23 05:45:28

1、先在电脑空白处点右键,选择新建文本文档。

win7右键中添加\

2、复制下面的内容保存。 注意格式别弄乱了!

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" 

win7右键中添加\

3、将这个文本文档重命名,改为 “获取管理员权限.reg”,注意后缀名要改成reg!

win7右键中添加\

4、更改成功后的样子和原来的文本文档比样子也变了。

win7右键中添加\

5、双击“获取管理员权限.reg”这个文件, 选择 是。

win7右键中添加\

6、点击 确定

win7右键中添加\

7、再到文件或文件夹上点右键菜单,就可以看到“管理员取得所有权”了

win7右键中添加\

8、现在你可以操作之前没有权限的文件或文件夹了。

看看我的文件终于成功删除了!

win7右键中添加\

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢