如何取得Win7文件的管理员权限

[复制链接]
查看362 | 回复0 | 2019-12-21 13:23 | 显示全部楼层 |阅读模式

                                核心提示:WIndows7有权限问题,当我们发现某些文件无法修改时,我们就需要取得这个文件的管理员所有权,取得之后,我们就可以随心所欲的去修改它了。                            .                                                                        

  从Vista系统开始,微软为了提供系统安全性,开始强调对于Windows文件的所有权,以及程序运行时的用户权限,限制程序对系统重要文件的篡改。不过这样也给我们平时使用带来了一些问题,同样WIndows7也有权限问题。当我们发现某些文件无法修改时,我们就需要取得这个文件的管理员所有权,取得之后,我们就可以随心所欲的去修改它了。
  我们要介绍的技巧就是如何,取得某一个文件或文件夹的所有权。:
  方法一:为Windows7的右键菜单添加取得所有权的菜单:具体实现的方法不难,将以下内容另存为文本文件,然后修改该文件的扩展名为.reg ,双击导入注册表即可。


  Windows Registry Editor Version 5.00
  [HKEY_CLASSES_ROOT\*\shell\runas]
  @=quot;管理员取得所有权quot;
  quot;NoWorkingDirectoryquot;=quot;quot;
  [HKEY_CLASSES_ROOT\*\shell\runas\command]
  @=quot;cmd.exe /c takeown /f \quot;%1\quot; .. icacls \quot;%1\quot; /grant administrators:Fquot;
  quot;IsolatedCommandquot;=quot;cmd.exe /c takeown /f \quot;%1\quot; .. icacls \quot;%1\quot; /grant administrators:Fquot;
  [HKEY_CLASSES_ROOT\exefile\shell\runas2]
  @=quot;管理员取得所有权quot;
  quot;NoWorkingDirectoryquot;=quot;quot;
  [HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
  @=quot;cmd.exe /c takeown /f \quot;%1\quot; .. icacls \quot;%1\quot; /grant administrators:Fquot;
  quot;IsolatedCommandquot;=quot;cmd.exe /c takeown /f \quot;%1\quot; .. icacls \quot;%1\quot; /grant administrators:Fquot;
  [HKEY_CLASSES_ROOT\Directory\shell\runas]
  @=quot;管理员取得所有权quot;
  quot;NoWorkingDirectoryquot;=quot;quot;
  [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
  @=quot;cmd.exe /c takeown /f \quot;%1\quot; /r /d y .. icacls \quot;%1\quot; /grant administrators:F /tquot;
  quot;IsolatedCommandquot;=quot;cmd.exe /c takeown /f \quot;%1\quot; /r /d y .. icacls \quot;%1\quot; /grant administrators:F /tquot;
  方法二:利用专业的优化工具,设置右键菜单。
  这里说的优化工具有很多种,一般支持WindowsVista的优化工具,都能用来优化WIndows7,比如Vista优化大师(进入下载),Vista总管(进入 下载)等,当然那些专门设计给Windows7的优化软件也可以达到一样的效果,比如Windows7优化大师(进入下载)、Windows7总管等等。这些工具中的系统设置中,右键设置都有 添加获得管理员权限的功能,这里就不详细说明了,大家自己找一下即可。
  

.                                                                                    





上一篇:iOS8.3WiFi通话 中国什么时候能开启
下一篇:U盘不能删除文件怎么办
【玉璞集 YUPUG.COM】