Questions

Uninstall Google toolbar

+
0 Votes
Locked

Uninstall Google toolbar

patb071
I am looking for a way to automate the uninstall of google toolbar and a few other programs. We have Altiris Console available but i can not find any useful information on their site. We are currently running XP on a 2003 domain. Any help without installing a program would be greatly appreciated.
  • +
    0 Votes
    patb071

    How would i create\run a vbs script? Looks like it would become very useful once i start using it.

    +
    0 Votes
    ---TK---

    then place the code in the .txt. Change the .txt to .vsb, and double click it... or you can have a .bat file call it to start the script...

    Is that what you mean?

    +
    0 Votes
    patb071

    I tried renaming it as a .bat but it didn't work here is what i have

    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

    Set colSoftware = objWMIService.ExecQuery _
    ("Select * from Win32_Product Where Name = 'Google Toolbar for internet explorer'")

    For Each objSoftware in colSoftware
    objSoftware.Uninstall()
    Next

    +
    0 Votes
    patb071

    Thank You This one helped

    Option Explicit:On Error Resume Next
    Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
    a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2318C2B1-4965-11d4-9B18-009027A5CD4F}\UninstallString")
    If a<>"" Then WshShell.Run(a&" /S"),1,True:i=1
    WshShell=Nothing:Wscript.Quit(i)

    Now i just have to figure out how to create a vbs Script on my own.

    +
    0 Votes
    Jacky Howe

    http://computerperformance.co.uk/

    Guy Thomas has a collection of useful scripts and he goes to great lengths to explain what is happening.

    +
    0 Votes
    itmanagement

    *******************BATCH START**********
    :MAKELOCAL
    C:
    cd\
    MD CLEANUP
    xcopy \\SERVER\ADMINSHARE$\Cleanup\*.* C:\Cleanup\ /c /y /r /h /s /f
    cscript.exe /h:cscript

    :GOOGLE
    IF EXIST "C:\Program Files\Google\googletoolbar*.exe" (GOTO GOOGLETOOLBAR) ELSE GOTO YAHOO

    :GOOGLETOOLBAR
    IF EXIST "C:\Program Files\Google\Installers\GoogleToolbarInstaller4.0.0.002.msi" (GOTO REMOVEGOOGLETOOLBARV4) ELSE GOTO REMOVEGOOGLETOOLBARV3

    :REMOVEGOOGLETOOLBARV4
    ECHO UNINSTALLING GOOGLE TOOLBAR V4
    MsiExec.exe /X{DBEA1034-5882-4A88-8033-81C4EF0CFA29} /qb
    RD "C:\Program Files\Google\Installers" /s /q
    RD "C:\Program Files\Google\GoogleToolbarNotifier" /s /q
    DEL "C:\Program Files\Google\GoogleToolbar2.dll"
    DEL "C:\Program Files\Google\GoogleToolbar2user.exe"
    REGEDIT /S "C:\Cleanup\Google Toolbar 4 HKLM.reg"
    ECHO REMOVED V4
    GOTO YAHOO

    :REMOVEGOOGLETOOLBARV3
    ECHO REMOVING GOOGLE TOOLBAR V3
    C:\WINDOWS\system32\regsvr32.exe /s /u "C:\Program Files\Google\GoogleToolbar1.dll"
    C:\WINDOWS\system32\regsvr32.exe /s /u "C:\Program Files\Google\GoogleToolbar2.dll"
    RD C:\Program Files\Google\GoogleToolbarNotifier /s /q
    DEL C:\Program Files\Google\GoogleToolbar2.dll
    DEL C:\Program Files\Google\GoogleToolbar2user.exe
    REGEDIT /S "C:\Cleanup\Google Toolbar 3 HKLM.reg"
    ECHO REMOVED V3 OR BELOW
    GOTO YAHOO

    :YAHOO
    IF EXIST "C:\Program Files\Yahoo!" (GOTO REMOVEYAHOOTOOLBAR) ELSE GOTO LIVE

    :REMOVEYAHOOTOOLBAR
    ECHO REMOVING YAHOO TOOLBAR
    "C:\Program Files\Yahoo!\Common\unyt.exe" /S
    RD "C:\Program Files\Yahoo!\" /S /Q
    GOTO LIVE

    :LIVE
    IF EXIST "C:\Program Files\Windows Live Toolbar" (GOTO REMOVELIVETOOLBAR) ELSE GOTO MCAFEEREMOVE

    :REMOVELIVETOOLBAR
    MsiExec.exe /X{786C4AD1-DCBA-49A6-B0EF-B317A344BD66} /qb
    MsiExec.exe /X{A5C4AD72-25FE-4899-B6DF-6D8DF63C93CF} /qb
    MsiExec.exe /X{341201D4-4F61-4ADB-987E-9CCE4D83A58D} /qb
    MsiExec.exe /X{F084395C-40FB-4DB3-981C-B51E74E1E83D} /qb
    MsiExec.exe /X{D5A145FC-D00C-4F1A-9119-EB4D9D659750} /qb
    GOTO END

    END
    ***************BATCH ENDS********************

    REGISTRY KEYS:
    Windows Registry Editor Version 5.00

    GOOGLE TOOLBAR V3
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\CustomSearch]

    GOOGLE TOOLBAR V4
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common\Google Updater]
    "path"="C:\\Program Files\\Google\\Common\\Google Updater\\GoogleUpdaterService.exe"
    "version"="2.0.734.29932"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common\Google Updater\apps]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common\Google Updater\apps\tbie]
    "auto"=dword:00000000

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\CustomSearch]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar]
    "test"="41"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\4.0]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\4.0\Setup]
    "EnablePageRank"=dword:00000001
    "InstallerSystemSearch"=dword:00000001
    "InstallerEnableSWG"=dword:00000001
    "EnableUsageStats"=dword:00000000
    "UsageStatsSet"=dword:00000000
    "InstalledSilent"=dword:00000000
    "InstalledOEM"=dword:00000000
    "OEMAllowWelcomeToast"=dword:00000000
    "WelcomePage"="http://toolbar.google.com/tbredir?r=di&l=en&v=4.0"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Branding]
    "brand"="GGLJ"
    "id"="4EFD60D5E949A42257E499BA6AED5B68FEFC8B5wGUEN"
    "installtime"="1200621234"
    "rlz"="1T4GGLJ_enAU258"
    "sent"=dword:00000001

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers\CLSID]
    "{44295CB8-D71B-11DA-8750-001185653D78}"="c:\\program files\\google\\googletoolbar2.dll"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers\Interface]
    "{45295CB8-D71B-11DA-8750-001185653D78}"="c:\\program files\\google\\googletoolbar2.dll"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers\TypeLib]
    "{46295CB8-D71B-11DA-8750-001185653D78}"="c:\\program files\\google\\googletoolbar2.dll"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Installations]
    "1200621235"="v=4.0.1601.4978-big&tbbrand=GGLJ&hl=en&i=1"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\GoogleToolbarNotifier]
    "DefaultLanguage"="en"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\GoogleToolbarNotifier\Clients]
    "ietb"=dword:00000000

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\NavClient]
    "InstalledByMsi"=dword:00000001

  • +
    0 Votes
    patb071

    How would i create\run a vbs script? Looks like it would become very useful once i start using it.

    +
    0 Votes
    ---TK---

    then place the code in the .txt. Change the .txt to .vsb, and double click it... or you can have a .bat file call it to start the script...

    Is that what you mean?

    +
    0 Votes
    patb071

    I tried renaming it as a .bat but it didn't work here is what i have

    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

    Set colSoftware = objWMIService.ExecQuery _
    ("Select * from Win32_Product Where Name = 'Google Toolbar for internet explorer'")

    For Each objSoftware in colSoftware
    objSoftware.Uninstall()
    Next

    +
    0 Votes
    patb071

    Thank You This one helped

    Option Explicit:On Error Resume Next
    Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
    a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2318C2B1-4965-11d4-9B18-009027A5CD4F}\UninstallString")
    If a<>"" Then WshShell.Run(a&" /S"),1,True:i=1
    WshShell=Nothing:Wscript.Quit(i)

    Now i just have to figure out how to create a vbs Script on my own.

    +
    0 Votes
    Jacky Howe

    http://computerperformance.co.uk/

    Guy Thomas has a collection of useful scripts and he goes to great lengths to explain what is happening.

    +
    0 Votes
    itmanagement

    *******************BATCH START**********
    :MAKELOCAL
    C:
    cd\
    MD CLEANUP
    xcopy \\SERVER\ADMINSHARE$\Cleanup\*.* C:\Cleanup\ /c /y /r /h /s /f
    cscript.exe /h:cscript

    :GOOGLE
    IF EXIST "C:\Program Files\Google\googletoolbar*.exe" (GOTO GOOGLETOOLBAR) ELSE GOTO YAHOO

    :GOOGLETOOLBAR
    IF EXIST "C:\Program Files\Google\Installers\GoogleToolbarInstaller4.0.0.002.msi" (GOTO REMOVEGOOGLETOOLBARV4) ELSE GOTO REMOVEGOOGLETOOLBARV3

    :REMOVEGOOGLETOOLBARV4
    ECHO UNINSTALLING GOOGLE TOOLBAR V4
    MsiExec.exe /X{DBEA1034-5882-4A88-8033-81C4EF0CFA29} /qb
    RD "C:\Program Files\Google\Installers" /s /q
    RD "C:\Program Files\Google\GoogleToolbarNotifier" /s /q
    DEL "C:\Program Files\Google\GoogleToolbar2.dll"
    DEL "C:\Program Files\Google\GoogleToolbar2user.exe"
    REGEDIT /S "C:\Cleanup\Google Toolbar 4 HKLM.reg"
    ECHO REMOVED V4
    GOTO YAHOO

    :REMOVEGOOGLETOOLBARV3
    ECHO REMOVING GOOGLE TOOLBAR V3
    C:\WINDOWS\system32\regsvr32.exe /s /u "C:\Program Files\Google\GoogleToolbar1.dll"
    C:\WINDOWS\system32\regsvr32.exe /s /u "C:\Program Files\Google\GoogleToolbar2.dll"
    RD C:\Program Files\Google\GoogleToolbarNotifier /s /q
    DEL C:\Program Files\Google\GoogleToolbar2.dll
    DEL C:\Program Files\Google\GoogleToolbar2user.exe
    REGEDIT /S "C:\Cleanup\Google Toolbar 3 HKLM.reg"
    ECHO REMOVED V3 OR BELOW
    GOTO YAHOO

    :YAHOO
    IF EXIST "C:\Program Files\Yahoo!" (GOTO REMOVEYAHOOTOOLBAR) ELSE GOTO LIVE

    :REMOVEYAHOOTOOLBAR
    ECHO REMOVING YAHOO TOOLBAR
    "C:\Program Files\Yahoo!\Common\unyt.exe" /S
    RD "C:\Program Files\Yahoo!\" /S /Q
    GOTO LIVE

    :LIVE
    IF EXIST "C:\Program Files\Windows Live Toolbar" (GOTO REMOVELIVETOOLBAR) ELSE GOTO MCAFEEREMOVE

    :REMOVELIVETOOLBAR
    MsiExec.exe /X{786C4AD1-DCBA-49A6-B0EF-B317A344BD66} /qb
    MsiExec.exe /X{A5C4AD72-25FE-4899-B6DF-6D8DF63C93CF} /qb
    MsiExec.exe /X{341201D4-4F61-4ADB-987E-9CCE4D83A58D} /qb
    MsiExec.exe /X{F084395C-40FB-4DB3-981C-B51E74E1E83D} /qb
    MsiExec.exe /X{D5A145FC-D00C-4F1A-9119-EB4D9D659750} /qb
    GOTO END

    END
    ***************BATCH ENDS********************

    REGISTRY KEYS:
    Windows Registry Editor Version 5.00

    GOOGLE TOOLBAR V3
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\CustomSearch]

    GOOGLE TOOLBAR V4
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common\Google Updater]
    "path"="C:\\Program Files\\Google\\Common\\Google Updater\\GoogleUpdaterService.exe"
    "version"="2.0.734.29932"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common\Google Updater\apps]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Common\Google Updater\apps\tbie]
    "auto"=dword:00000000

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\CustomSearch]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar]
    "test"="41"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\4.0]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\4.0\Setup]
    "EnablePageRank"=dword:00000001
    "InstallerSystemSearch"=dword:00000001
    "InstallerEnableSWG"=dword:00000001
    "EnableUsageStats"=dword:00000000
    "UsageStatsSet"=dword:00000000
    "InstalledSilent"=dword:00000000
    "InstalledOEM"=dword:00000000
    "OEMAllowWelcomeToast"=dword:00000000
    "WelcomePage"="http://toolbar.google.com/tbredir?r=di&l=en&v=4.0"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Branding]
    "brand"="GGLJ"
    "id"="4EFD60D5E949A42257E499BA6AED5B68FEFC8B5wGUEN"
    "installtime"="1200621234"
    "rlz"="1T4GGLJ_enAU258"
    "sent"=dword:00000001

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers]

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers\CLSID]
    "{44295CB8-D71B-11DA-8750-001185653D78}"="c:\\program files\\google\\googletoolbar2.dll"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers\Interface]
    "{45295CB8-D71B-11DA-8750-001185653D78}"="c:\\program files\\google\\googletoolbar2.dll"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Brokers\TypeLib]
    "{46295CB8-D71B-11DA-8750-001185653D78}"="c:\\program files\\google\\googletoolbar2.dll"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar\Installations]
    "1200621235"="v=4.0.1601.4978-big&tbbrand=GGLJ&hl=en&i=1"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\GoogleToolbarNotifier]
    "DefaultLanguage"="en"

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\GoogleToolbarNotifier\Clients]
    "ietb"=dword:00000000

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Google\NavClient]
    "InstalledByMsi"=dword:00000001