Upgrading to IE 11 through SCCM using Batch File

Hi Guys ,

For those of you who have issues in their environments upgrading to IE 11 and also want to make sure that the respective updates for IE get installed with the IE installation since now the updates being offered for IE 11 are coming as cumulative updates  . That means great news for us , we just install IE 11 and then install one patch which makes sure the IE 11 is upgraded to the latest patch level .

Solution is running the dism command in a bat file and install all of the prerequisite, IE11, and latest update at the same time, and it only need to restart machine only one time.The following is the demo script:

ECHO OFF

ECHO Installing IE 11 prerequisite: KB2834140

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2834140-v2-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2670838

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2670838-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2639308

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2639308-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2533623

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2533623-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2731771

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2731771-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2729094

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2729094-v2-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2786081

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2786081-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2888049

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2888049-x64.cab /quiet /norestart

ECHO Installing IE 11 prerequisite: KB2882822

dism /online /add-package /packagepath:c:\path\Windows6.1-KB2882822-x64.cab /quiet /norestart

ECHO Installing IE 11 main

dism /online /add-package /packagepath:c:\path\IE-Win7.cab /quiet /norestart

ECHO Installing latest update: KB3124275

dism /online /add-package /packagepath:c:\path\IE11-Windows6.1-KB3124275-x64.cab /quiet /norestart

More information about the script:

  1. Change all of the paths in red based on the your settings. E.g. c:\IESetup\.
  2. This script is for x64 machine, if the machines are x86 machine, please download the packages for X86 and change the file names. You can get the correct file name from the steps below.
  3. Please note that all of the installation are based on cab files. You can get the update related cab files using the steps below:
  4. For the IE-Win7.cab package,

 

Please first test the bat file on a testing machine (run it using local administrator permission for test purpose) and check if the script can upgrade IE11 as expected. Please note that the setup is silent and IE11 will be upgraded after the machine reboots.

And once done you can then use the same script through SCCM to deploy on clients and servers to upgrade to IE11 .

Note: If you create two packages, you need to change the path in your script with a local path, and make sure the first package copy all cab files to the local path.

  1. Create a package to copy all cab files to specific folder on client machine:         1 a.Create a SCCM package which contain IE11 related cab files .

IE          1 b. Create a program like below:

Xcopy .\*.* C:\test\ /Y

       2.Create another package to run the script.

2.a.Create a package which contain IE11 installation script file .IE2

Note : And if you client is 64bit OS, I suggest you to deploy the package via Task sequence:

IE3

IE4

 

So we upgrade to IE 11 following this method .

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Website Powered by WordPress.com.

Up ↑

%d bloggers like this: