Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 取得檔案管理員權限完整教學:右鍵選單與進階應用

編輯:Windows 7 系統介紹

Windows 7 取得檔案/資料夾完全控制權限:註冊檔一鍵加入右鍵選單與 SYSTEM 權限進階應用

Windows 7 權限機制嚴格,常導致無法修改/刪除系統檔案。本文提供註冊檔快速新增右鍵「取得管理員擁有權」選單,並說明取得 SYSTEM 權限後的進階操作場景。

方法一:匯入註冊檔新增右鍵選單

將下列內容存為 TakeOwnership.reg,雙擊匯入:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理員取得所有權"
"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]
@="管理員取得所有權"
"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]
@="管理員取得所有權"
"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 7 優化大師、神器等)

內建「右鍵選單新增取得管理員權限」功能,圖形介面操作,適合不習慣編輯登錄的用戶。

優化工具介面

取得 SYSTEM 權限後的進階應用(需 PsExec 或排程工作以 SYSTEM 身分執行 CMD)

  1. 存取受限登錄機碼:HKEY_LOCAL_MACHINE\SAM、SECURITY,查殺隱藏帳戶、木馬鍵值。
  2. 操作系統還原資料夾:System Volume Information,刪除還原點釋放空間、隱藏私密檔案。
  3. 替換系統檔案:繞過 WFP(如替換 termsrv.dll 開啟多使用者遠端桌面)。
  4. 手動查殺頑固病毒:系統層級結束惡意程序、刪除鎖定檔案、清除登錄啟動項。

取得 SYSTEM 權限 CMD 方法


PsExec.exe -i -s cmd.exe
或:排程工作 → 建立基本工作 → 觸發器「登入時」 → 動作「啟動程式」 → 程式 cmd.exe → 參數 /k → 勾選「使用最高權限執行」→ 以 SYSTEM 帳戶執行(需匯入 XML 修改 Principal)。

注意事項

  • 修改系統檔案/登錄有風險,**操作前必須建立還原點**。
  • 僅對信任對象授予權限,避免降低系統安全性。
  • 右鍵選單未出現請重新登入或重啟 explorer.exe。
Copyright © Windows教程網 All Rights Reserved