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

以 SYSTEM 權限執行 CMD 刪除頑固檔案:Windows 7 實戰案例

編輯:Windows XP 系統介紹

Windows 7 刪除 D 槽舊檔案時提示「權限不足」,連啟用的 Administrator 也無法刪除,檔案權限顯示僅 SYSTEM 擁有完全控制。嘗試多種強制刪除工具無效後,發現透過建立互動式服務啟動 CMD,即可取得 SYSTEM 權限徹底清除。

核心指令

sc create SuperCMD binPath= "cmd /K start" type= own type= interact
sc start SuperCMD

操作步驟

  1. 將上述兩行指令存為 .bat 批次檔(例如 get_system.cmd)。
  2. 以系統管理員身分執行批次檔。
  3. 彈出「服務互動式服務偵測」視窗,點選「檢視訊息」。
  4. 即進入白底黑字的 SYSTEM 權限 CMD 視窗,可直接 del 或 rd /s 刪除任何頑固檔案/資料夾。

原理解析

  • sc create 建立名為 SuperCMD 的服務,type= interact 允許與桌面互動。
  • binPath= "cmd /K start" 啟動保持開啟的命令提示字元。
  • 服務以 Local System 帳戶執行,擁有最高核心權限,可繞過 ACL 限制。
⚠ 風險提醒:SYSTEM 權限極高,誤刪系統關鍵檔案可能導致作業系統損壞。操作前請確認目標檔案非系統必要元件,建議先備份重要資料。用畢後可執行 sc delete SuperCMD 移除服務。
Copyright © Windows教程網 All Rights Reserved