如何在win7下快速获取高级管理员权限?

09-14

在很多情况下,我们在操作电脑的时候都需要用到高级权限,只有获取到超级管理员权限的时候,我们才可以完成某项操作,那么如何在win7下快速获取高级管理员权限?小编下面就来介绍一下吧!

其实很简单,我们只需要建立一个记事本文件,然后将小编下面给出的代码复制进去,然后再另存为".reg"格式,完成之后再双击该文件即可。以下便是需要复制的代码:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT*shellrunas]

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

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT*shellrunascommand]

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

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

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTexefileshellrunas2command]

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

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

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTDirectoryshellrunascommand]

@="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*shellrunas]

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

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT*shellrunascommand]

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

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

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTexefileshellrunas2command]

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

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

"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOTDirectoryshellrunascommand]

@="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"