Windows XP-based computers might be marked as non-genuine when incorrect or corrupted data.dat file is present
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.
Steps to update the WGA Data.dat file on a single computer
Manual steps to update the WGA Data.dat file on a single computerTo 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:905474 Description of the Windows Genuine Advantage Notifications application
- Restart the computer.
Automated steps to update the WGA Data.dat file on a single computerTo 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.
Steps to automatically update the WGA Data.dat file on multiple computersThe 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.
@ECHO OFFIF EXIST "%ALLUSERSPROFILE%\Application Data\Windows Genuine Advantage\data\data.dat" (ECHO Deleting data.datattrib -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. WGATray.exe /b:ENDECHO Done
Article ID: 926333 - Last Review: 01/07/2008 19:34:41 - Revision: 4.3
- kbexpertiseinter kbtshoot kbprb KB926333