MDT 2012 - LiteTouch Installation, exclude specific Windows Update forever RRS feed

  • Question

  • Dear community

    I've successfully deployed several Windows 7 clients during the last week. Now my company wants to exclude some updates, for example the Microsoft Security Essentials (KB2805304) and of course the very annoying browser choice update (KB976002).

    We use our WSUS server to install as many updates as possible. At the end of the deployment, we turn off the WSUS update for these clients because they won't be in our LAN anymore, that's why we have to turn on the Microsoft Updates.

    I've been trying to exclude these updates using the specific setting in the CustomSettings.ini file:
    But this seems to work with WSUS only. At the end, when we remove the WSUS settings from the registry and apply the Microsoft Update service, those updates appear again.

    I've tried to hide them using the following VBS script:
    Dim hideupdates(1)
    hideupdates(0) = "KB976002"
    hideupdates(1) = "KB2805304"
    set updateSession = createObject("Microsoft.Update.Session")
    set updateSearcher = updateSession.CreateupdateSearcher()
    Set searchResult = updateSearcher.Search("IsInstalled=0")
    For i = 0 To searchResult.Updates.Count-1
    	set update = searchResult.Updates.Item(i)
    	For j = LBound(hideupdates) To UBound(hideupdates) 
    		if instr(1, update.Title, hideupdates(j), vbTextCompare) = 0 then
    	  		'Wscript.echo "No match found for " & hideupdates(j)
    			Wscript.echo "Hiding " & hideupdates(j)
    			update.IsHidden = True
    		end if

    This script works like a charm if I run it AFTER the deployment. If I run it DURING the deployment (at the end of it), it seems like the deployment wizard reverts the changes I made (I think because the wizard wants to revert the WUMU_Exclude part).
    Quite strange, but I still hope for a solution. Any ideas?

    Thanks in advance!

    Kind regards

    • Edited by Makorus Tuesday, July 16, 2013 5:28 PM
    Tuesday, July 16, 2013 5:27 PM

All replies