Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> Windows 技巧

DOS 環境下巧破 Windows XP 登入密碼

編輯:Windows 技巧

遺忘 Windows XP 登入密碼時,可透過 DOS 啟動環境操作 SAM 檔案或使用內建管理員帳戶重設密碼。本文提供兩種實操路徑,附 Windows 2000 差異說明。

方法一:替換 SAM 檔案(適用 Administrator 帳戶)

  1. 以 DOS 啟動碟/隨身碟開機進入命令提示字元。
  2. 執行:
    del C:\Windows\system32\config\SAM
    copy C:\Windows\repair\SAM C:\Windows\system32\config\
  3. 重開機進入 Windows,出現提示點擊「確定」,即可以空白密碼登入 Administrator。

Windows 2000: 僅需執行 del C:\WINNT\system32\config\SAM 即可。

方法二:安全模式命令列重設密碼(適用非 Administrator 帳戶)

  1. 開機連按 F8 進入「帶命令提示字元的安全模式」。
  2. 登入 Administrator(預設無密碼)。
  3. 執行:net user 帳戶名 新密碼
    範例:net user hades 123456
  4. 若不確定帳戶名,執行 net user 查看所有帳戶。

注意事項

  • 此操作需具備實體存取權限,屬本地提權技術,請合法授權環境下使用。
  • 替換 SAM 會重置所有本地帳戶密碼為安裝初始狀態,可能影響加入網域環境。
  • 建議平時建立密碼重設磁碟(參考文章 63137),避免走到這一步。
Copyright © Windows教程網 All Rights Reserved