遺失 Windows Server 2008 管理員密碼時,無需重灌系統。透過安裝光碟進入修復環境,替換系統無障礙工具 magnify.exe 為 cmd.exe,即可在登入畫面獲得最高權限命令提示字元,重置密碼。
cd \Windows\System32
ren magnify.exe magnify.exe.bak
copy cmd.exe magnify.exe
cmd.exe,且以 SYSTEM 權限 執行 (可輸入 whoami 驗證)。net user administrator NewP@ssw0rd
magnify.exe:
cd \Windows\System32
del magnify.exe
ren magnify.exe.bak magnify.exe
登入畫面 (LogonUI) 執行於 SYSTEM 權限下,其啟動的無障礙工具繼承相同權限。替換 magnify.exe 為命令提示字元,即繼承 SYSTEM 權限,可繞過正常驗證機制直接操作 SAM 資料庫。