fuIE: Disable Internet Explorer on WinXP

With WinXP being officially unsupported by Microsoft and new Internet Explorer vulnerabilities being discovered, you may want consider disabling Internet Explorer on all computers running Windows XP.  If you do, see below for a handy script to basically kill the application.

Renaming the mshtml.dll is a method discussed more in depth here: http://forums.mozillazine.org/viewtopic.php?t=157214

After running the script you will be promoted with this window, just click [ Cancel ]



fuIE

name as such because I have used this expression many a times - fuie on urbandictionary

fuie: disables Internet Explorer on WinXP, usually does as a security measure.

Options:
? - about, this screen
y - reply yes to warning, don't prompt
fix - undo the change, I want IE back
undo - same as fix

DISCLAIMER: USE AT YOUR OWN RISK. THIS SOFTWARE IS PROVIDE AS-IS, WITH NO WARRANTIES OR FITNESS FOR A PARTICULAR USE EXPRESS OR IMPLIED.

@echo off
ver | find "XP" > nul
if %ERRORLEVEL% == 0 goto ver_xp
goto warn_then_exit
:ver_xp
if "%1"=="?" goto about
if "%1"=="y" goto run
if "%1"=="Y" goto run
if "%1"=="fix" goto fix
if "%1"=="undo" goto fix
set /p choice=Are you sure you want to break/disable Internet Explorer? ('y' to confirm):
if %choice%==y goto run
if %choice%==Y goto run
goto exit
:run
if exist %WINDIR%\ServicePackFiles\i386\mshtml.dll rename %WINDIR%\ServicePackFiles\i386\mshtml.dll mshtml.dll.old
if exist %WINDIR%\System32\dllcache\mshtml.dll rename %WINDIR%\System32\dllcache\mshtml.dll mshtml.dll.old
if exist %WINDIR%\System32\mshtml.dll rename %WINDIR%\System32\mshtml.dll mshtml.dll.old
echo fuIE
goto exit
:warn_then_exit
echo This computer is not running Windows XP.
echo This script is only recommended to break/disabled Internet Explorer on UNSUPPORTED WinXP.
goto exit
:fix
if exist %WINDIR%\ServicePackFiles\i386\mshtml.dll.old rename %WINDIR%\ServicePackFiles\i386\mshtml.dll.old mshtml.dll
if exist %WINDIR%\System32\dllcache\mshtml.dll.old rename %WINDIR%\System32\dllcache\mshtml.dll.old mshtml.dll
if exist %WINDIR%\System32\mshtml.dll.old rename %WINDIR%\System32\mshtml.dll.old mshtml.dll
echo Undone
goto exit
:about
echo.
echo fuie: disables Internet Explorer on WinXP, usually does as a security measure.
echo.
echo Options:
echo ? - about, this screen
echo y - reply yes to warning, don't prompt
echo fix - undo the change, I want IE back
echo undo - same as fix
echo.
echo DISCLAIMER: USE AT YOUR OWN RISK. THIS SOFTWARE IS PROVIDE AS-IS, WITH NO WARRANTIES OR FITNESS FOR A PARTICULAR USE EXPRESS OR IMPLIED.
echo.
goto exit
:exit
view raw gistfile1.txt hosted with ❤ by GitHub

No comments:

Post a Comment