Get Date/Time of Last Windows Update

C

carlklammer08

Hello,

is there a registry key or a WMI query or anything to get the date and time
the system has been updated the last time via Windows Update?

I mean the date/time that is also shown when you open the Windows Update
applet where it says "Updates were installed:" under "Most recent check for
updates:".

I appreciate every hint!

Thank you very much in advance!
 
D

delboy

this my help open windows update click on view update history
click on the update it should go blue right click and click view details
will give you time and date and other info
hope this helps del
 
C

carlklammer08

Hi delboy,

thanks for your response.

I might just have expressed my concern not clearly enough: We need to read
this timestamp with a software program called "BGinfo" (it's a Microsoft tool
that displays certain system information on your desktop).
This program can read registry entries, WMI queries, text files or VB-scripts.

So we need a solution that uses one of those possibilities to get this
last-updated-timestamp.

Thanks.
 
Z

Zaphod Beeblebrox

carlklammer08 said:
Hello,

is there a registry key or a WMI query or anything to get the date and
time
the system has been updated the last time via Windows Update?

I mean the date/time that is also shown when you open the Windows
Update
applet where it says "Updates were installed:" under "Most recent
check for
updates:".

I appreciate every hint!

Thank you very much in advance!

Looks like what you are looking for is here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto
Update\Results\Detect
LastSuccessTime

and here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto
Update\Results\Download
LastSuccessTime

LastSuccessTime is a string with both date and time, and appears to be
GMT so will be different than your local time by whatever time zone you
are in.

Hope this helps!
 
C

carlklammer08

Hey Zaphod,
thanks, this was exactly what I was looking for.

But there is something quite strange going on with this key, it seems:
I am dealing with this key right now:
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install\LastSuccessTime"

I can SEE this key using regedit.exe, but when I try to access/read this key
with either BGinfo or via a VBS-Script (WshShell.RegRead) I always get the
error message "KEY DOES NOT EXIST".

I double checked for spelling errors, but could not find any.
This problem seems to exist with all children of the Key "WindowsUpdate", I
cannot get e.g. "SusClientId" (which is a String Value directly below the Key
WindowsUpdate either.

As this is a fresh out-of-the-box installation of Windows Server 2008 (I
also tried it on Vista - same results), there should nothing be wrong with
the permissions to this key (every user has at least "read" permissions as I
see), no permissions have been changed.

I also tried running BGinfo as an Administrator, but it did not help either.
Every other program except for regedit says this key did not exist!

Strange...

Has anybody got an idea what causes this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top