win8一鍵獲取管理員權(quán)限教程

2016-10-19 12:51:40 來源:三聯(lián)作者:sou7 人氣: 次閱讀 122 條評(píng)論

  在要獲得所有權(quán)限的文件或者文件夾上,右鍵,一鍵取得超級(jí)管理員權(quán)限,就可以在普通管理員帳戶中,快速取得最高權(quán)限。  取得權(quán)限后,再運(yùn)行程序,就與在超級(jí)管理員帳戶中運(yùn)行中是一樣的。  還有一種情況是由于有程序正...

  在要獲得所有權(quán)限的文件或者文件夾上,右鍵,一鍵取得超級(jí)管理員權(quán)限,就可以在普通管理員帳戶中,快速取得最高權(quán)限。

  取得權(quán)限后,再運(yùn)行程序,就與在超級(jí)管理員帳戶中運(yùn)行中是一樣的。

  還有一種情況是由于有程序正在操作這個(gè)文件導(dǎo)致刪除不了的情況,啟用任務(wù)管理器結(jié)束該程序所有進(jìn)程后再次嘗試刪除即可。

  代碼如下:

  Windows Registry Editor Version 5.00

  [HKEY_CLASSES_ROOT*shellrunas]

  @="一鍵取得超級(jí)管理員權(quán)限"

  "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]

  @="一鍵取得超級(jí)管理員權(quán)限"

  "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]

  @="一鍵取得超級(jí)管理員權(quán)限"

  "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]

  @="一鍵取得超級(jí)管理員權(quán)限"

  "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]

  @="管理員取得所有權(quán)"

  "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]

  @="一鍵取得超級(jí)管理員權(quán)限"

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

  新建一個(gè).txt文本,將下面的代碼復(fù)制粘貼到文件中,另存為或重命名為.reg文件,雙擊此文件或右鍵點(diǎn)合并此文件。

  啟用管理員賬戶:運(yùn)行g(shù)pedit.msc -- 計(jì)算機(jī)配置 -- Windows設(shè)置 -- 安全設(shè)置 -- 本地策略 -- 安全選項(xiàng) -- 帳戶: 管理員帳戶狀態(tài) -- 雙擊打開屬性 -- 啟用 -- 確定.