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

刪除 SAM 檔案導致 XP 無法開機?用復原主控台還原登錄檔

編輯:Windows XP 系統介紹

許多使用者嘗試在 DOS 下刪除 SAM 檔案來破解遺忘的登入密碼,但這招僅適用於未打補丁的 Windows 2000。在 Windows XP 及更新版本中,刪除 SAM 會直接導致系統無法啟動,出現錯誤訊息卡在歡迎畫面。

解決方案:從 \Windows\Repair 還原登錄檔案

若無備份 SAM,可利用系統自動備份在 C:\Windows\Repair 的登錄檔覆蓋 C:\Windows\System32\Config 下的損毀檔案:

  1. 進入 復原主控台(參考上篇文章安裝方法)。
  2. 依序執行以下指令(假設系統安裝在 C:):
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. 輸入 exit 重新啟動電腦。

⚠️ 注意:此操作會將系統還原至「剛安裝完成」的狀態,所有安裝的軟體、驅動程式、個人化設定將遺失,需重新安裝設定。

更好的替代方案:使用專業密碼重設工具

建議改用 DreamPack、ERD Commander、Offline NT Password & Registry Editor 等工具,可直接離線重設或清空帳戶密碼,不破壞系統,操作更安全快速。

Copyright © Windows教程網 All Rights Reserved