系統知識網 系統知識 Win10右鍵菜單添加"管理員取得所有"權方法

Win10右鍵菜單添加"管理員取得所有"權方法

在使用win10系統的過程中,總是會遇到一些軟件、文件因為權限無法操作的問題,如無法訪問,不能編輯,無法刪除,其實我們可以沿用Win7下的一個方法,就是在右鍵菜單加入 管理員取得所有權 選項,很大的方便瞭用戶獲取權限。下面一起來看看是怎麼添。

在使用win10系統的過程中,總是會遇到一些軟件、文件因為權限無法操作的問題,如無法訪問,不能編輯,無法刪除,其實我們可以沿用Win7下的一個方法,就是在右鍵菜單加入 管理員取得所有權 選項,很大的方便瞭用戶獲取權限。下面一起來看看是怎麼添加的吧。

1、打開記事本,或在桌面先新建一個文本文檔打開,然後復制以下註冊表代碼到記事本中;

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\runas]

[HKEY_CLASSES_ROOT\*\shell\runas]
@="獲取超級管理員權限"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="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_ROOT\Directory\shell\runas]
;www.系统知识网.com

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="獲取超級管理員權限"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="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"

[-HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\runas]
@="獲取超級管理員權限"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
@="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_ROOT\Drive\shell\runas]

[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="獲取超級管理員權限"
"Icon"="C:\\Windows\\System32\\imageres.dll,-78"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="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"

2、然後右鍵另存為“管理員取得所有權.reg”,保存類型選擇“所有文件”;

3、雙擊創建好的reg註冊表文件,導入註冊表就可以瞭。

註意:如果你當前帳戶不是Administrator,那麼需要把上面代碼中的 Administrator 帳戶 替換成你的帳戶名才可以!不然是沒有效果的。

返回顶部