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

Windows XP 刪除 SAM 檔案導致無法開機?修復註冊表配置檔案救援教學

編輯:XP 系統應用技巧

嘗試刪除 SAM 檔案清除密碼,卻導致系統無法開機。這是因為刪除 SAM 僅適用於未打 Service Pack 的 Windows 2000,XP/2003 以上版本已修補此漏洞,刪除 SAM 會直接導致系統無法載入安全性資料庫。

緊急救援:以 repair 目錄備份檔覆蓋 system32\config

Windows 會在 C:\windows\repair 保存安裝初期的註冊表備份(SAM、SECURITY、DEFAULT、SYSTEM、SOFTWARE),可用於緊急還原。

復原主控台修復指令

  1. 進入復原主控台
  2. 依序執行:
copy C:\windows\repair\SAM C:\windows\system32\config\
copy C:\windows\repair\SECURITY C:\windows\system32\config\
copy C:\windows\repair\DEFAULT C:\windows\system32\config\
copy C:\windows\repair\SYSTEM C:\windows\system32\config\
copy C:\windows\repair\SOFTWARE C:\windows\system32\config\
  1. 重新啟動電腦

後果與代價

  • 系統還原至安裝初期狀態(Out-of-box experience)
  • 所有安裝軟體將無法運作(註冊表遺失)
  • 系統設定、使用者設定檔、網路設定全部遺失
  • 需重新安裝所有應用程式、驅動程式、Windows Update

正確做法:使用專業密碼重設工具

  • DreamPack、ERD Commander 2003/2005、Offline NT Password Editor
  • 這類工具能離線修改 SAM 資料庫,直接清空或設定新密碼,不損害系統完整性

教訓總結

  • 刪除 SAM 是過時且危險的作法,XP SP2 以上完全失效
  • 遇到忘記密碼,優先使用方案二(隱藏 Administrator)、方案三(重設磁碟)或專業工具
  • 平時應建立密碼重設磁碟或備份 SAM/SECURITY 檔案

誤刪 SAM 並非絕路,但修復代價高昂,正確工具與預防習慣才是長久之計。

Copyright © Windows教程網 All Rights Reserved