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

盜版 Windows XP 黑畫面強制驗證機制與繞過方案(含批次檔腳本)

編輯:系統常見問題解答

微軟自 2006 年起針對中國市場啟動 Windows XP 專業版與 Office 正版驗證計畫(WGA),盜版系統將遭遇每小時強制黑畫面(桌面背景變純黑)、Office 選單列顯示「非正版」標記。本文提供預防設定與事後補救批次檔,助使用者維持系統可用性。

預防設定:關閉自動更新與相關服務

  1. 我的電腦→內容→自動更新→選擇「關閉自動更新」。
  2. 執行 services.msc,停用並設定為「手動」或「停用」:
    Automatic Updates(自動更新)
    Office Source Engine(Office 來源引擎)

事後補救:WGA 移除批次檔(WGA_Remove.bat)

若 20 日後已出現黑畫面,請依下列內容建立批次檔以系統管理員身分執行:

@echo off
sfc /purgecache
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\Wgalogon" /f
taskkill /f /im WgaTray.exe /T
del c:\Windows\system32\WgaTray.exe /f /q
taskkill /f /im WgaTray.exe /T
del c:\Windows\system32\WgaTray.exe /f /q
taskkill /f /im WgaTray.exe /T
del c:\Windows\system32\WgaTray.exe /f /q
taskkill /f /im WgaTray.exe /T
del c:\Windows\system32\WgaTray.exe /f /q
taskkill /f /im WgaTray.exe /T
del c:\WINNT\system32\WgaTray.exe /f /q
taskkill /f /im WgaTray.exe /T
del c:\WINNT\system32\WgaTray.exe /f /q
echo. & pause

建立方式:記事本貼上上述內容 → 另存為 WGA_Remove.bat → 右鍵「以系統管理員身分執行」。

原理說明

  • sfc /purgecache:清除系統檔案快取,強制重新驗證系統檔案。
  • 刪除 Wgalogon 通知套件:移除 WGA 掛鉤 Winlogon 的機制。
  • 多重 taskkill + del:確保終止並刪除 WGA 核心元件 WgaTray.exe(涵蓋 system32 與 WINNT 兩種路徑)。

風險提醒

  • 此做法屬繞過授權機制,可能違反微軟授權條款,請自行評估法律風險。
  • 移除 WGA 後將無法透過 Windows Update 取得部分非關鍵更新(如 IE7、Windows Media Player 11 等)。
  • 建議長期方案:購買正版授權或改用 Linux 等開源替代方案。

技術手段僅供緊急因應,正版化才是長久之計。若預算有限,可考慮加入微軟開放授權計畫、教育優惠或企業大量授權管道取得合法授權。

Copyright © Windows教程網 All Rights Reserved