Batch script – One-Click Downgrade from IE11, IE10, and IE9 to IE8

This is a script that will downgrade IE11, IE10, and IE9 to IE8.

@echo off
echo Downgrading to IE11 to IE10 – Step 1
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c “cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart”

echo Downgrading IE10 to IE9 – Step 2
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c “cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart”

echo Downgrading IE9 to IE8 – Step 3
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*9.*.mum /c “cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart”

cls

SET /P ANSWER=Do you want to restart (Y/N)?
echo You chose: %ANSWER%
if /i {%ANSWER%}=={y} (goto :yes)
if /i {%ANSWER%}=={yes} (goto :yes)
goto :no
:yes
echo Shutting down in 5 seconds
shutdown.exe /r /t 05 /f

:no
echo You pressed no!
exit /b 1

Advertisements

6 thoughts on “Batch script – One-Click Downgrade from IE11, IE10, and IE9 to IE8

  1. Pingback: [Windows] 移除IE9~IE11 批次檔 | EC Blog

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s