A Microsoft Windows XP-based computer might start to fail the Windows Genuine Advantage (WGA) validation process, or the Windows XP-based computer might be reported as being non-genuine.
This behavior might be caused by an incorrect Data.dat file or by a corrupted Data.dat file in the %ALLUSERSPROFILE%
\Application Data\Windows Genuine Advantage\data folder.Note
By default, the %ALLUSERSPROFILE%
folder is the C:\Documents and Settings\All Users folder. However, this location might be a different folder in your installation of Windows XP.
You must remove the Data.dat file from the Windows XP-based client computer. The Data.dat file will be updated correctly during the next validation.
Steps to update the WGA Data.dat file on a single computer
Manual steps to update the WGA Data.dat file on a single computer
To update the Data.dat file manually, follow these steps:
- Log on to the computer that is experiencing the problem by using an account that has administrator credentials.
- Delete the Data.dat file from the %ALLUSERSPROFILE%\Application Data\Windows Genuine Advantage\data folder.
- Visit the following Microsoft Web site to confirm that the computer is reported as genuine:
- Click Start, click Run, type wgatray.exe /b, and then click OK.
Note The wgatray.exe command might not be available on your computer. This command is available only on computers that have Windows Genuine Advantage Notifications installed. If the wgatray.exe command is unavailable, it is not an error. Go to the next step.
For more information about Windows Genuine Advantage Notifications, click the following article number to view the article in the Microsoft Knowledge Base:
Description of the Windows Genuine Advantage Notifications application
- Restart the computer.
Automated steps to update the WGA Data.dat file on a single computer
To perform an automated update of the Data.dat file, follow these steps:
- Visit the following Microsoft Web site:
- When you are prompted, click Run to run the Microsoft Genuine Advantage Diagnostic Tool.
Note Depending on your security settings, you might be prompted several times to confirm that you want to run the tool.
- Click Continue.
- On the Windows tab, click Resolve.
If this method does not work, use the instructions in the "Manual steps to update the WGA Data.dat file on a single computer" section.
Steps to automatically update the WGA Data.dat file on multiple computers
The following sample script is a simple .cmd script. To run this script on multiple Windows XP-based client computers, use Group Policy, Microsoft Systems Management Server, or other tools that are available in your environment. Use the best method for your environment to distribute the script. To run this script individually, you must run the script as an administrator.
To create this script, open a new .txt file, and then paste the following script text in the new file. After you create the file, rename it by using a .cmd file name extension.
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.