1.右鍵單擊“計算機”,進入“管理”找到“用戶和組”
2.找到administrators,右鍵調出屬性,把“賬戶已禁用”前面的勾去掉。回桌面
3.新建“記事本”,copy 如下內容:
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"
好了,另存為隨便起名,後綴必須是.reg,將其命名為“win7獲取管理員權限.reg”
最後將另存成的注冊表信息導入,這樣就獲得了WIN7管理員權限了。