Monday, November 05, 2012 4:11 PM
What I need is some script that I can run that looks to see if a certain Microsoft Office Outlook Hotfix is isntalled, if not then go ahead and install it.Below is the script I currently have that is not working. It says that I don't have the Hotfix installed, but I do have it installed.
I have the Hotfix installed on my PC, I've found some scripts out there but none seem to work. It comes up saying that it's not installed on my PC, when it really is. It's like it's only searching for Windows Updates and not Office Updates/Hotfixes.
Set objSession = CreateObject("Microsoft.Update.Session") Set objSearcher = objSession.CreateUpdateSearcher Set objResults = objSearcher.Search("Type='Software'") Set colUpdates = objResults.Updates For i = 0 to colUpdates.Count - 1 If colUpdates.Item(i).Title = _ "Hotfix for Microsoft Outlook 2010 (KB2687351)" Then If colUpdates.Item(i).IsInstalled <> 0 Then Wscript.Echo "This update is installed." Wscript.Quit Else Wscript.Echo "This update is not installed." Wscript.Quit End If End If Next Wscript.Echo "This update is not installed."
Monday, November 05, 2012 4:14 PMModerator
Monday, November 05, 2012 4:20 PMEdited my post
Monday, November 05, 2012 4:52 PMModerator
I recommend a server-based method of installing updates, such as WSUS.
Monday, November 05, 2012 7:02 PMWe have WSUS, but the Hotfixes are only in .exe format.
Monday, November 05, 2012 8:03 PMModerator
If the hotfix is not available for distribution via WSUS, then I'm not surprised that the Windows Update engine doesn't list it.
An alternative suggestion would be a generalized search of installed applications (such as this) and see if that gives you the results you need.
- Proposed As Answer by Bill_StewartMicrosoft Community Contributor, Moderator Saturday, November 24, 2012 6:37 PM
- Marked As Answer by Bill_StewartMicrosoft Community Contributor, Moderator Monday, December 31, 2012 3:55 PM