schmuck2
asked on
Windows Update - how to get date last ran
I need to extract the date that Windows Update was last run on a PC running Windows 98se
if this is not possible then how do I tell if a particular update (eg. KB896727) has been installed?
I'm using Visual Basic 5.0 but posted in this area in case it's an api I can easily use in VB
thanks
if this is not possible then how do I tell if a particular update (eg. KB896727) has been installed?
I'm using Visual Basic 5.0 but posted in this area in case it's an api I can easily use in VB
thanks
ASKER
thanks for your help
I have found the solution
Windows Update writes all activity (dates, patch installed etc) to a logfile in the Windows/WinNT folder.
I simply get the filedate of this file for when WU last ran
For Win98 it is Windows Update.log (space)
For Win2K/WinXP it is WindowsUpdate.log (no space)
I have found the solution
Windows Update writes all activity (dates, patch installed etc) to a logfile in the Windows/WinNT folder.
I simply get the filedate of this file for when WU last ran
For Win98 it is Windows Update.log (space)
For Win2K/WinXP it is WindowsUpdate.log (no space)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
HKLM\SOFTWARE\Microsoft\Up
HKLM\SOFTWARE\Microsoft\Wi
HKLM\SOFTWARE\Microsoft\Wi
However, the rest of your question is gonna be kinda tough for Win98. Starting with Win2k, the individual updates recorded their install date. For anything less than Win2k, the use of the install date is very sporatic. In my experience with WinNT, less than 1/4 of the "QFE" entries had install dates. I have no realy experience with Win98, but I'd assume it'd be the same or worse.
The registry settings (for modern OS's) contains the value for the "Next Run"... not the date of the "Last Run".
HKLM\SOFTWARE\Microsoft\Wi