I know Internet Explorer 10 is still in beta but has any created a managed install or script to un-install Internet Explorer 10 and a label or smart label to identify it in the k1000 v 5.3 ?

0 Comments   [ + ] Show Comments


  • This content is currently hidden from public view.
    Reason: Member has been banned from the site
    For more information, visit our FAQ's.
Please log in to comment


'KACE IE10 Uninstall Script
'Joe Ostrander
'	1) Custom Software Inventory item for IE10 
'		a) using rule:  FileInfoEquals(c:\Program Files\Internet Explorer\iexplore.exe, FileMajorPart, NUMBER, 10)
'		b) Attach this script as the Associated File
'	2) Managed Install for the custom app
'		a) Installation Command
'			i) Configure Manually
'			ii) command = wscript.exe Uninstall_IE10.vbs
'			iii) check to enable "Un-Install using Full Command Line"
'		b) Managed action = Execute anytime
'		c) Select your deployment options (All machines... custom label... etc)


Set RegEx = New RegExp
RegEx.Pattern = "Microsoft-Windows-InternetExplorer-(.*?)10\.(.*?)\.mum"
RegEx.IgnoreCase = True

Set fso = CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("WScript.Shell")

If fso.FileExists("c:\windows\sysnative\wscript.exe") Then
	'if 32 on 64...relaunch (KACE agent runs as 32bit... this script should run as 64bit)
	WshShell.run "c:\windows\sysnative\wscript.exe //nologo " & Chr(34) & wscript.scriptfullname & Chr(34),,True
End If

Set oFolder = fso.GetFolder("C:\Windows\Servicing\Packages")
For Each oFile in oFolder.Files
	If RegEx.Test(oFile.Name) Then
		WshShell.Run "pkgmgr /up:""" & fso.GetBaseName(oFile) & """ /quiet /norestart",0,True
	End If


Answered 02/19/2013 by: joeostrander
Third Degree Blue Belt

  • also... you can play around with this command:

    FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /norestart"

    • Thank you Joe, I will look into this...
    • When I attach the script as an Associated File, should I be naming it a *.bat? I've followed the steps to set up a custom installation, however when I try to deploy the uninstall command to a test computer, it doesn't seem to do anything. The Associated File extension is the only thing not spelled out and the only thing I can think of holding this up. Suggestion?
      • no, this is vbscript... name it with a .vbs extension
  • thanks for the code, we had it push out to about 80 machines before we could stop it.
Please log in to comment

I have version 10 on my station and it looks like you can reference the registry key svcversion for version 10

This is the release version info.  We are using

RegistryValueGreaterThan(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer, svcVersion, 10.0)

Answered 02/05/2013 by: SMal.tmcc
Red Belt

Please log in to comment

but after it is full release then svcVersion will not work and then you would have to use just Version key.

Answered 02/06/2013 by: piyushnasa
Red Belt

  • Thank you Gentleman - would the version key work to un-install also once released?
    • If MS follows it normal plan for software updates it should change that version key to 10..... and you would switch to using that key vs the svcversion key
      • Thank you, do you know what would be needed to have it un-installed?
  • I looked for a method on my machine and the only way so far to get rid of ie 10 is to go into control panel and remove it way
    • Thanks for the information. Hopefully someone knows of a way to have it removed using the K1000 silently so it can be done on multiple systems at the same time vs going to each individual machine. Maybe when the full release comes out we will know better.
      • usually on normal MS patch releases you can use sputil and a couple of others to remove.
  • Can you provide screen shots of where the code should be place. the code is confusing.
    • I went to 2 different software inventory items so I can run reports or create labels for any version of IE
    • You can ignore the code, just do the requirements listed at the top of it. Essentially you just create a custom Software Inventory item (attaching the code as a file named Uninstall_IE10.vbs) and also a managed install that launches the script.
Please log in to comment
Answer this question or Comment on this question for clarity