I had a call today about Microsoft OGA (Office Genuine Advantage) Notifier becoming an annoyance for a client.

Office Genuine Advantage covers Office XP, Office 2003 and the 2007 Microsoft Office System.  This script will remove all of the different flavors as of 12-4-2009.

I hope this helps you the IT administrators out there that may have tried to save time by using a Volume License over and over to automate corporate installs that had purchased the correct BOXED version of the product.

I do not promote software pirates and suggest if it is illegal copy to true up and buy a real copy.

Create a TEXT file and past below the dotted lines into it.  Then save it and rename it to REMOVE.BAT.  Then you can execute it.
----------------------------------------------------------------------------------------------------------------------------------------------------
ECHO NOTICE: It is recommended that you run this from safe mode.
ECHO.
PAUSE
ECHO.

ECHO Uninstalling...
ECHO.

Rem v1.7.0102.0
MSIEXEC /X {049F2E8F-D5EC-4133-87FA-8E94837D8D0C} /QN /NORESTART ALLUSERS=1
Rem v1.7.0104.0 (ITA)
MSIEXEC /X {F7D88C75-EDBE-46ED-8339-20ACBAA069E7} /QN /NORESTART ALLUSERS=1
Rem v1.7.0104.0 (ES)
MSIEXEC /X {A59E02F8-4605-4323-B77F-C62F03FE18CC} /QN /NORESTART ALLUSERS=1
Rem v1.7.0104.0 (TRK)
MSIEXEC /X {08100CBF-F2E6-44A3-B48E-4856BA7A6B5B} /QN /NORESTART ALLUSERS=1
Rem v1.7.0105.35.0 (US-EN)
MSIEXEC /X {B148AB4B-C8FA-474B-B981-F2943C5B5BCD} /QN /NORESTART ALLUSERS=1
Rem v1.7.0105.35.0 (SWE)
MSIEXEC /X {DB427EF6-F13E-4AA6-9D40-5D962394774F} /QN /NORESTART ALLUSERS=1
Rem v2.0.48.0 (UK-EN)
MSIEXEC /X {B2544A03-10D0-4E5E-BA69-0362FFC20D18} /QN /NORESTART ALLUSERS=1

ECHO Done!
ECHO.

ECHO Cleanup...
ECHO (Errors can be ignored)
ECHO.

if exist %WinDir%\system32\OGAVerify.exe taskkill /F /IM OGAVerify.exe /T
if exist %WinDir%\system32\OGAEXEC.exe taskkill /F /IM OGAEXEC.exe /T
if exist %WinDir%\system32\WGATray.exe taskkill /F /IM WGATray.exe /T

REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\OGAAddin.Connect /f
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Excel\Addins\OGAAddin.Connect /f
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Powerpoint\Addins\OGAAddin.Connect /f
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\OGAAddin.Connect /f

if exist %WinDir%\system32\dllcache\OGAVerify.exe DEL %WinDir%\System32\dllcache\OGAVerify.exe
if exist %WinDir%\system32\OGAVerify.exe DEL %WinDir%\System32\OGAVerify.exe
if exist %WinDir%\system32\dllcache\OGAEXEC.exe DEL %WinDir%\system32\dllcache\OGAEXEC.exe
if exist %WinDir%\system32\OGAEXEC.exe DEL %WinDir%\system32\OGAEXEC.exe
if exist %WinDir%\system32\dllcache\OGAAddin.dll DEL %WinDir%\System32\dllcache\OGAAddin.dll
if exist %WinDir%\system32\OGAAddin.dll DEL %WinDir%\System32\OGAAddin.dll
if exist %WinDir%\system32\dllcache\OGACheckControl.dll DEL %WinDir%\System32\dllcache\OGACheckControl.dll
if exist %WinDir%\system32\OGACheckControl.dll DEL %WinDir%\System32\OGACheckControl.dll
if exist %WinDir%\system32\dllcache\WGATray.exe DEL %WinDir%\System32\dllcache\WGATray.exe
if exist %WinDir%\system32\WGATray.exe DEL %WinDir%\System32\WGATray.exe

ECHO.
ECHO Done!
ECHO.
ECHO Press any key to exit . . .
PAUSE > NUL

Article ID: 54, Created On: 12/4/2009, Modified: 11/1/2013

Feedback (0)