Reset Windows Genuine Advantage Validation
From Wiki
Creator: Geoff
Script Language: VBS
Forum topic Link: http://www.edugeek.net/forums/wiki-announcements/17300-reset-windows-genuine-advantage-validation.html#post172259
If you have a machine that has had it's WGA validation mess up. You need to reset it, check for any WGA updates and then retest the WGA validation. Here's a script to do it.
<vb>@ECHO OFF
IF EXIST "%ALLUSERSPROFILE%\Application Data\Windows Genuine Advantage\data\data.dat" (
ECHO Deleting data.dat attrib -R "%ALLUSERSPROFILE%\Application Data\Windows Genuine Advantage\data\data.dat" DEL "%ALLUSERSPROFILE%\Application Data\Windows Genuine Advantage\data\data.dat"
)
IF NOT EXIST %WINDIR%\system32\WGATray.exe (GOTO END)
ECHO WGA Validation in progress. Please wait... WGATray.exe /b
- END
ECHO Done</vb>


