两个方法轻松解决Win7没有管理员权限的问题
时间:2023-10-01 22:36:51
从Vista系统开始,微软为了提供系统安全性,开始强调对于Windows文件的所有权,以及程序运行时的用户权限,限制程序对系统重要文件的篡改。不过这样也给我们平时使用带来了一些问题,当我们要删除系统上的一个文件时,总是提示无管理员权限,使得不能删除。同样WIndows7也有权限问题。当我们发现某些文件无法修改时,我们就需要取得这个文件的管理员所有权,取得之后,就可以想怎么修改就怎么修改了。
如何取得某一个文件或文件夹的所有权:
方法一:为Windows7的右键菜单添加取得所有权的菜单:具体实现的方法不难,将以下内容另存为文本文件,然后修改该文件的扩展名为.reg ,双击导入注册表即可。
![两个方法轻松解决Win7没有管理员权限的问题](https://img.aspxhome.com/file/2023/27/a233817_0.jpg)
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"
方法二:利用专业的优化工具,设置右键菜单
这里说的优化工具有很多种,一般支持WindowsVista的优化工具,都能用来优化WIndows7,比如Vista优化大师(进入下载),Vista总管(进入 下载)等,当然那些专门设计给Windows7的优化软件也可以达到一样的效果,比如Windows7优化大师(进入下载)、Windows7总管等等。这些工具中的系统设置中,右键设置都有 添加获得管理员权限的功能,这里就不详细说明了,大家自己找一下即可。
![两个方法轻松解决Win7没有管理员权限的问题](https://img.aspxhome.com/file/2023/27/a233817_1.jpg)
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何让Win10每天夜间自动开启深色模式
![](https://img.aspxhome.com/file/2023/28/a241359_0s.png)
如何在不丢失文件的情况下快速重置Win11?
![](https://img.aspxhome.com/file/2023/27/a237959_0s.jpg)
酷狗音乐如何剪辑音乐?酷狗音乐剪辑音乐的方法
![](https://img.aspxhome.com/file/2023/8/a337300_0s.jpg)
WPS文字中如何插入折线图的步骤详解
Win7系统开始菜单没有计算器怎么办?
![](https://img.aspxhome.com/file/2023/27/a229998_0s.jpg)
用excel求方差的方法步骤详解
如何替换PPT中设置过动画的图片?
![](https://img.aspxhome.com/file/2023/10/a352894_0s.png)
如何利用Excel的 COLUMNS函数 计算数组或引用列数
![](https://img.aspxhome.com/file/2023/1/a161471_0s.jpg)
微软发布最新Win11 22483.1000预览版!
![](https://img.aspxhome.com/file/2023/2/a284043_0s.png)
excel如何自动计算年龄
![](https://img.aspxhome.com/file/2023/0/a161570_0s.png)
Excel COUNTA 函数 使用实例教程
![](https://img.aspxhome.com/file/2023/2/a163022_0s.png)
Mac如何切换黑暗模式?试试这3种方法
![](https://img.aspxhome.com/file/2023/7/a209807_0s.png)
电脑版WPS怎么开启聚光灯
![](https://img.aspxhome.com/file/2023/3/a183713_0s.jpg)
怎么使用Nero7刻录视频光盘?
![](https://img.aspxhome.com/file/2023/8/a339579_0s.jpg)
如何在wps表中找到自然对数E的值
![](https://img.aspxhome.com/file/2023/5/a170375_0s.jpg)
Win7桌面IE图标无法删除如何解决?
![](https://img.aspxhome.com/file/2023/27/a230394_0s.jpg)
【Mac小技巧】Mac桌面文件这样整理更清爽
![](https://img.aspxhome.com/file/2023/3/a204523_0s.jpeg)
XinA15越狱工具正式发布 兼容iOS 15.0 - 15.1.1系统
![](https://img.aspxhome.com/file/2023/6/44826_0s.png)
Win7系统中设置立体声混音的方法步骤介绍
![](https://img.aspxhome.com/file/2023/4/a308006_0s.jpg)
WPS如何自动双面打印
![](https://img.aspxhome.com/file/2023/8/a163728_0s.jpg)