How To Uninstall IE10 From Computers On Your Domain

Something very bad happened to me today.  All of my computers on my domain (around 600 systems) are set to look to my WSUS server for updates via a GPO.  I have explicitly denied the IE10 update to all my systems.  Well, somehow last night, the systems lost communication with my domain controllers.  This caused all of my systems to loose the GPO that tells them where to look for updates.  Every system that was powered on checked for updates from the Microsoft site and automatically installed them.  As you can imagine, this caused a lot of headaches for me in the morning.  Here’s what I did to fix it.

 

Pull a list of all computer names that are affected out of Active Directory using the Export List feature.  Save the list as hostnamelist.txt

Download PSTools: http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

Open notepad and save the following to a script called IE.bat
FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart /quiet"

Put that script in the same directory as PSExec.

Run the script via Psexec:

C:\folder\> Psexec.exe @hostnamelist.txt –c IE.bat

 

That script will remove Internet Explorer 10 without interrupting users.  Once the script has been applied to all computers, the systems must be rebooted.  This can be done automatically using the shutdown -r command at the end of the script.

7 Responses

  1. Alan Rossko says:

    I am many hat wearer at a small credit union and we have been having problems with IE 10 and certain financial websites. Management informed me they wanted to go back to IE 9 on all our host. I am not a script writer but I gave your script a shot just now on one of my host and it worked like a champ. You have made my life much easier and I appreciate your time to publish this blog.

    Also, would the shutdown -r be substituted for the /norestart or piped to the end of the command line? If I had a user with IE 11 can I just sub in 11 for 10 in “*-10.*” ?

    Thx again for the script and outstanding instructions. I really should learn scripting but they have me running around doing projects and helpdesk.

    • scott says:

      Shutdown -r should work at the end, but I didn’t test that out. This is also untested for IE 11 since I haven’t even begun to experiment with that yet, I’m not sure if the mechanics are still the same.

  2. KD says:

    hey Scott,
    when i try to run the above i get message : PsExec could not start ?c on comp01.
    the system cannot find the file specified.

    any thoughts?
    thank you.

  3. Jeet says:

    Hi Scott,

    A fantastic script to a very tedious and boring problem. I need to ask a rather dumb question mate – should I be running this on a server on our network or am I ok doing the following –

    – Unzip PStools files in Pstools folder on my C:\ drive

    – Paste in the hostnamelist into the PStools folder also

    – Paste the .bat file containing your script into the PStools folder

    – Run script

    Your feedback would be much appreciated.

Leave a Reply


*