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

重設Windows XP密碼:啟動腳本+Net User命令,繞過登入畫面直接修改

編輯:Windows XP 系統介紹

利用XP啟動腳本在登入介面前以System權限執行批次檔修改密碼,無需第三方工具:

前提

  • FAT32分區:Win98啟動盤直接操作。
  • NTFS分區:掛載至支援NTFS的系統(Win2000/XP/PE)操作。

操作步驟

  1. Win98啟動盤開機,建立a.bat內容:net user rwd 12345678(rwd為目標帳號,12345678為新密碼),存放C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup\。
  2. 建立scripts.ini存放C:\Winnt\System32\GroupPolicy\Machine\Scripts\,內容:
    [Startup]
    0CmdLine=a.bat
    0Parameters=
  3. 移除啟動盤,重開機。啟動腳本以System權限執行,密碼即被重設。
  4. 登入成功後立即刪除上述兩檔案,防止重複執行。

原理

啟動腳本運行於用戶登入前,擁有最高權限,net user命令直接修改SAM資料庫。同法適用Win2000本地/域帳號,可重設Administrator密碼。

純系統內建功能,無需PE/破解工具,緊急情況下極為實用。

Copyright © Windows教程網 All Rights Reserved