Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Reset Windows Genuine Advantage Validation


Recommended Posts

Posted

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.

 

@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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...