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

Win10 內建管理員帳戶被禁用無法登入?PE 環境下利用 sethc.exe 替換法恢復

編輯:Windows 10 系統介紹

Win10 僅有內建 Administrator 帳戶且被禁用,導致無法登入系統。可透過 PE 環境替換 sethc.exe (Sticky Keys) 為 cmd.exe,在登入介面喚出命令提示符重新啟用帳戶。

前置準備

  • 可啟動的 WinPE U盤/光盤(微PE、優啟通等)。
  • 能訪問系統盤 (通常為 C:)。

操作步驟

  1. PE 啟動進入桌面,打開系統盤 C:\Windows\System32\。
  2. 找到 sethc.exe → 重命名為 sethc.exe.bak (備份)。
  3. 複製 cmd.exe → 重命名為 sethc.exe (替換粘鍵程式)。
  4. 同樣複製 cmd.exe 到 C:\Windows\System32\dllcache\ (若存在) 並重命名為 sethc.exe。
  5. 重啟,拔除 PE U盤,進入正常 Win10 登入介面。
  6. 連續按 5 次 Shift 鍵 → 彈出管理員權限 CMD 視窗。
  7. 輸入命令:net user administrator /active:yes → 回車。
  8. 重新登入,即可使用 Administrator 帳戶。

PE 環境下修復示意

原理

sethc.exe 為粘滯鍵程式,登入介面可觸發。替換為 cmd.exe 後,觸發粘滯鍵即獲得 SYSTEM 權限命令列,繞過登入限制修改帳戶狀態。

恢復

登入後,將 sethc.exe.bak 改回 sethc.exe,刪除 dllcache 中的副本,恢復粘滯鍵功能。

提醒

Win10 早期預覽版不穩定,建議重要環境使用 Win8.1 或虛擬機測試。

Copyright © Windows教程網 All Rights Reserved