Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


what activeX control  windows update history

Posted on 2008-06-16
Medium Priority
Last Modified: 2013-11-18
My task is to get the information of Update History

Inside Internet Explorer, go to Tools  -> Windows Update

Then go to Review your Update History
what activex control it and how to use it?  preferably from vb6

any suggestions?
Question by:smayshar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3

Expert Comment

ID: 21802595
Do you want to get the list of Windows Update history and put it in your VB application?

Author Comment

ID: 21808202

Author Comment

ID: 21809733
I have open creadet a form and a webrowser Control.
loaded the url
As it show me all the records I need how do I grab all that data from it for me to use??
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 29

Expert Comment

ID: 21810300
According to the ActiveX in Download Programs, I found that it uses WUAPI 2.0 Type Library (wuapi.dll) which you can find in (c:\windows\system32\wuapi.dll)
Add a reference to this and I wrote code Query the information based on what the object browser displayed.
Option Explicit
Public Sub QueryRecentUpdates()
Dim nUpdates    As Long
Dim UPD         As UpdateSession
Dim oSearch     As IUpdateSearcher
Dim Col         As IUpdateHistoryEntryCollection
Dim Query       As IUpdateHistoryEntry
Set UPD = New UpdateSession             '// Setup our session object
Set oSearch = UPD.CreateUpdateSearcher  '// Get pointer to searcher
nUpdates = oSearch.GetTotalHistoryCount  '// Get total history count
Set Col = oSearch.QueryHistory(0, nUpdates)  '// Get pointer to collection
For Each Query In Col   '// Display the data in the collection
    Debug.Print Query.Title
'// Cleanup
Set UPD = Nothing
Set oSearch = Nothing
Set Col = Nothing
Set Query = Nothing
End Sub

Open in new window


Author Comment

ID: 21810525
Thanks a lot this is a big step forward
do you know how to get the hole field in that table?

what i get in col is the update column and I need the
 product | status | Date | source as well

LVL 29

Accepted Solution

nffvrxqgrcfqvvc earned 2000 total points
ID: 21810625
Yes, some methods are as follows:


Author Closing Comment

ID: 31467868
you are the best

Author Comment

ID: 21818250
eqi1044 thanks alot i am still missing the status column how can i tell from the methods the status or is there another way or method

Author Comment

ID: 21818362
eqi1044 i found the method thanks again
LVL 29

Expert Comment

ID: 21818762
Than you smayshar.

Feel free to post what you are using to display the column. You are talking about the smaller title and not the update title itself correct?

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question