新建乙個記事本,把下面的**複製進去,然後把檔案字尾名改為.reg,雙擊執行即可取得管理員許可權
新增管理員許可權:
windows registry editor version 5.00
;取得檔案修改許可權
[hkey_classes_root\*\shell\runas]
@="管理員許可權"
"icon"="c:\\windows\\system32\\imageres.dll,102"
"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\exefile\shell\runas2]
@="管理員許可權"
"icon"="c:\\windows\\system32\\imageres.dll,102"
"noworkingdirectory"=""
[hkey_classes_root\exefile\shell\runas2\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]
@="管理員許可權"
"icon"="c:\\windows\\system32\\imageres.dll,102"
"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"
新增恢復管理員許可權:
windows registry editor version 5.00
;恢復原始許可權
[hkey_classes_root\*\shell\runas-]
@="恢復原始許可權"
"icon"="c:\\windows\\system32\\imageres.dll,101"
"noworkingdirectory"=""
; && takeown /f \"%1\"
[hkey_classes_root\*\shell\runas-\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%username%%\""
"isolatedcommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%username%%\""
[hkey_classes_root\exefile\shell\runas2-]
@="恢復原始許可權"
"icon"="c:\\windows\\system32\\imageres.dll,101"
"noworkingdirectory"=""
[hkey_classes_root\exefile\shell\runas2-\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%username%%\""
"isolatedcommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%username%%\""
[hkey_classes_root\directory\shell\runas-]
@="恢復原始許可權"
"icon"="c:\\windows\\system32\\imageres.dll,101"
"noworkingdirectory"=""
[hkey_classes_root\directory\shell\runas-\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%username%%\""
"isolatedcommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /reset && cacls \"%1\" /e /r \"%%username%%\""
在雙擊執行這兩個檔案後,會自動把我們需要的功能注入到登錄檔裡,然後右鍵選單就會出現乙個管理員許可權和乙個恢復原始許可權的選項
Win8管理員賬戶禁用後沒有管理員許可權的解決辦法
由於某些原因,導致當前使用者賬戶被設定為非管理員賬戶,或者一 zi 不 ji 小 shou 心 jian 在使用者和組裡禁用了管理員賬戶,導致在執行程式時提示要輸入管理員密碼,但卻沒地方能夠輸入。這類情況下,需要進入安全模式重新設定使用者賬戶許可權。適用於 win8 win8.1 可以將滑鼠移動到螢...
win7 獲得管理員許可權
win7獲取資料夾的管理員許可權 乙個登錄檔匯入檔案 方法 開個記事本 然後複製如下冒號以後的東西過去,然後儲存為.reg檔案 就ok 了 在雙擊它 再匯入登錄檔 ok了 如下 windows registry editor version 5.00 hkey classes root shell ...
Ubuntu獲得管理員許可權
首頁按住ctrl alt t開啟終端,這是linux系統最基本的命令,建議讀者要熟練linux系統下的各種基本命令和shell程式設計,在這裡推薦大家一本書 ubuntu權威指南 我是花了乙個寒假把它看完的。在終端中輸入 sudo passwd root 那麼在螢幕中會以此顯示一下資訊 enter ...