WGA Workaround for IE
Tuesday, January 17th, 2006I recently tried to set up two new PCs running WinXP. After installing everything, it was time to go to the Windows Update site and start downloading the multitude of patches that have accumulated since SP2 was released. That meant that I had to bypass Windows Genuine Authentication, by implementing the workaround mentioned at Rafael Rivera’s article about the WGA workaround for Trixie.
Unfortunately the link to the script that implemented the workaround was dead. At the same time Trixie, which at some point came bundled with the script, no longer contained it… We can safely assume that Microsoft’s legal department had something to do with it.
Anyway, after some searching I managed to find a page that contained the actual code. Here’s a link to the WGA workaround instructions, as well as the script’s code:
// ==UserScript==
// @name WGA Workaround
// @namespace d09733c0-fe4c-11d9-8cd6-0800200c9a66
// @description Windows Genuine Advantage Workaround (IE)
// @include http*://*.microsoft.com/*
// ==/UserScript==
(function ()
{
// Fix Microsoft Downloads-based WGA
var js = document.createElement("script");
js.setAttribute("language", "JavaScript");
js.setAttribute("type", "text/javascript");
js.text = 'document.cookie="WinGenCookie=validation=0";';
document.getElementsByTagName('head').item(0).appendChild(js);
// Also fix Microsoft/Windows Update-based WGA
// (Thanks MacMonkey and rest)
window.g_sDisableWGACheck='all';
}
)();
