Monday, May 29, 2006

Remove WGA Non-Genuine Nag

OK folks. I have said in the earlier post that I don't condone piracy. The following script is an exception.

@echo off

taskkill /IM WgaTray.exe

del %windir%\system32\WgaTray.exe
del %windir%\system32\dllcache\WgaTray.exe
del %windir%\system32\WgaLogon.dll
del %windir%\system32\dllcache\WgaLogon.dll

set KillWgaRegFile=KillWgaNotify.reg

echo Windows Registry Editor Version 5.00 > %KillWgaRegFile%
echo. >> %KillWgaRegFile%
echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\WgaLogon] >> %KillWgaRegFile%

regedit /S %KillWgaRegFile%
del %KillWgaRegFile%

copy /Y %0 "%ALLUSERSPROFILE%\Start Menu\Programs\Startup"

echo %0 | find /C /I "Start Menu\Programs\Startup"
if NOT ERRORLEVEL 1 del %0


Having posted this info, I'm not responsible for any harm done by the script.

Cheers.

No comments: