JSI Tip 8984. How can I disable Browser Helper Objects when troubleshooting Internet Explorer strange behavior?

Browser Helper Objects are Internet Explorer plug-ins that can change the behavior of Internet Explorer. If a malicious Browser Helper Object is installed, it can make Internet Explorer act strangely, or do significant damage.

While a search of the Internet will reveal many tools for removing Browser Helper Objects, you may not be able to stay connected long enough to find them.

I have scripted DisableHelperObjects.bat to disable, or enable, Browser Helper Objects on your computer.

The syntax for using DisableHelperObjects.bat is:

DisableHelperObjects D|E|L \[ALL|ObjectNumber\]

Where:

L              lists all Browser Helper Object along with their associated ObjectNumber.

D ALL          disables all Browser Helper Objects.

D ObjectNumber disables the ObjectNumber Browser Helper Object.

E ALL          enables all Browser Helper Objects.

E ObjectNumber enables the ObjectNumber Browser Helper Object.
NOTE: Before using DisableHelperObjects.bat, close all instances of Internet Explorer.

DisableHelperObjects.bat contains:

@echo off
setlocal ENABLEDELAYEDEXPANSION
if /i \{%1\}

\{L\} goto OK1 if \{%2\}

\{\} goto err if /i \{%1\}

\{D\} goto OK1 if /i \{%1\}

\{E\} goto OK1 :err @echo Syntax: DisableHelperObjects D^|E^|L \[ALL^|ObjectNumber\] endlocal goto :EOF :OK1 set /a number=0 set what=N set action=%1 if /i "%action%" EQU "L" goto OK2 set what=%2 if /i "%what%" EQU "ALL" goto OK2 if "%what%" LSS "1" goto err if "%what%" GTR "9" goto err set /a number=10%what%%%10 if "%what%" NEQ "%number%" goto err :OK2 regedit /a "%TEMP%\DisableHelperObjects.tm1" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrenTVersion\Explorer\Browser Helper Objects" @echo REGEDIT4>"%TEMP%\DisableHelperObjects.tm2" @echo.>>"%TEMP%\DisableHelperObjects.tm2" set /a cnt=0 @echo Before @echo. for /f "Tokens=*" %%a in ('type "%TEMP%\DisableHelperObjects.tm1"^|FIND "\\{"') do ( set /a cnt=!cnt! + 1 set work=%%a set work=!work:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrenTVersion\Explorer\Browser Helper Objects\=! set work=!work:\[=! set work=!work:\]=! @echo !cnt! !work! @echo %%a>>"%TEMP%\DisableHelperObjects.tm2" @echo.>>"%TEMP%\DisableHelperObjects.tm2" ) @echo.>>"%TEMP%\DisableHelperObjects.tm2" del /q "%TEMP%\DisableHelperObjects.tm1 if /i "%action%" EQU "L" goto finish @echo REGEDIT4>"%TEMP%\DisableHelperObjects.tm1" @echo.>>"%TEMP%\DisableHelperObjects.tm1" set OK=N set /a cnt=0 for /f "Tokens=*" %%a in ('type "%TEMP%\DisableHelperObjects.tm2"^|FIND "\\{"') do ( set /a cnt=!cnt! + 1 set work=%%a call :doit ) if %number% NEQ 0 if "%OK%" EQU "N" @echo.&@echo Helper Object %number% not found.&goto after regedit /s "%TEMP%\DisableHelperObjects.tm1" :after regedit /a "%TEMP%\DisableHelperObjects.tm1" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrenTVersion\Explorer\Browser Helper Objects" @echo. @echo After @echo. set /a cnt=0 for /f "Tokens=*" %%a in ('type "%TEMP%\DisableHelperObjects.tm1"^|FIND "\\{"') do ( set /a cnt=!cnt! + 1 set work=%%a set work=!work:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrenTVersion\Explorer\Browser Helper Objects\=! set work=!work:\[=! set work=!work:\]=! @echo !cnt! !work! ) del /q "%TEMP%\DisableHelperObjects.tm1 :finish endlocal goto :EOF :doit if /i "%action%" EQU "E" goto doite if %number% EQU 0 goto doitda if %number% NEQ %cnt% goto :EOF set OK=Y :doitda set tst=%work% set tst=%tst:#NO#\}=\}% if "%tst%" NEQ "%work%" goto :EOF set del=%work% set del=%del:\[=\[-% @echo %del%>>"%TEMP%\DisableHelperObjects.tm1" @echo.>>"%TEMP%\DisableHelperObjects.tm1" set work=%work:\}=#NO#\}% :doitout @echo %work%>>"%TEMP%\DisableHelperObjects.tm1" @echo.>>"%TEMP%\DisableHelperObjects.tm1" goto :EOF :doite if /i "%what%" EQU "ALL" goto doitea if %number% NEQ %cnt% goto :EOF set OK=Y :doitea set tst=%work% set tst=%tst:#NO#\}=\}% if "%tst%" EQU "%work%" goto :EOF set del=%work% set del=%del:\[=\[-% @echo %del%>>"%TEMP%\DisableHelperObjects.tm1" @echo.>>"%TEMP%\DisableHelperObjects.tm1" set work=%work:#NO#\}=\}% goto doitout



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish