Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Get Date/Time of Last Windows Update

Reply
Thread Tools Display Modes

Get Date/Time of Last Windows Update

 
 
carlklammer08
Guest
Posts: n/a

 
      10-01-2008

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!
 
Reply With Quote
 
 
 
 
delboy
Guest
Posts: n/a

 
      10-01-2008
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


"carlklammer08" <> wrote in message
news:3E97C3C4-3984-4617-9608-...
> 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!


 
Reply With Quote
 
carlklammer08
Guest
Posts: n/a

 
      10-01-2008
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.
 
Reply With Quote
 
Zaphod Beeblebrox
Guest
Posts: n/a

 
      10-01-2008

"carlklammer08" <> wrote in
message news:3E97C3C4-3984-4617-9608-...
>
> 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\Curr entVersion\WindowsUpdate\Auto
Update\Results\Detect
LastSuccessTime

and here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\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!

--
Zaphod

Zaphod's just zis guy, ya know?


 
Reply With Quote
 
carlklammer08
Guest
Posts: n/a

 
      10-01-2008

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\Cur rentVersion\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?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show date and time of incoming email in Windows mail Judson Windows Vista Mail 14 06-23-2008 01:15 AM
Time and date do not update Kujoluvssug Windows Vista General Discussion 1 04-28-2008 06:25 PM
How to stop Windows Mail from changing file date/time to current Bruce R. Windows Vista Mail 1 04-20-2008 12:37 PM
Windows Date & Time goorambatman Windows Vista General Discussion 5 10-01-2007 08:33 AM
Windows Date and Time GMT problem Adam Windows Vista General Discussion 0 05-20-2007 06:07 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59