微軟自 2006 年起針對中國市場啟動 Windows XP 專業版與 Office 正版驗證計畫(WGA),盜版系統將遭遇每小時強制黑畫面(桌面背景變純黑)、Office 選單列顯示「非正版」標記。本文提供預防設定與事後補救批次檔,助使用者維持系統可用性。
services.msc,停用並設定為「手動」或「停用」:若 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 兩種路徑)。技術手段僅供緊急因應,正版化才是長久之計。若預算有限,可考慮加入微軟開放授權計畫、教育優惠或企業大量授權管道取得合法授權。