win7、win8一键获取管理员权限方法

来源:三联时间:2014-04-29

  新建一个.txt文本,将下面的代码复制粘贴到文件中,另存为或重命名为.reg文件,双击此文件或右键点合并此文件。

  代码如下:

  Windows Registry Editor Version 5.00

  [HKEY_CLASSES_ROOT*shell unas]

  @="一键取得超级管理员权限"

  "NoWorkingDirectory"=""

  [HKEY_CLASSES_ROOT*shell unascommand]

  @="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_ROOTexefileshell unas2]

  @="一键取得超级管理员权限"

  "NoWorkingDirectory"=""

  [HKEY_CLASSES_ROOTexefileshell unas2command]

  @="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_ROOTDirectoryshell unas]

  @="一键取得超级管理员权限"

  "NoWorkingDirectory"=""

  [HKEY_CLASSES_ROOTDirectoryshell unascommand]

  @="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"Windows Registry Editor Version 5.00

  [HKEY_CLASSES_ROOT*shell unas]

  @="一键取得超级管理员权限"

  "NoWorkingDirectory"=""

  [HKEY_CLASSES_ROOT*shell unascommand]

  @="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_ROOTexefileshell unas2]

  @="管理员取得所有权"

  "NoWorkingDirectory"=""

  [HKEY_CLASSES_ROOTexefileshell unas2command]

  @="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F"

  "IsolatedCommand"="cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F"

发表评论

最新评论(共0条)