Post by carlklammer08Hello Robert,
I found the key, with a GMT date and time information in it, which should
normally be easy to read out.
"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".
Let's try using PowerShell instead. I'm trying to learn PowerShell
and think that ultimately this could be the best tool for doing this.
Adapting Example 3 from the Help new-psdrive...
new-psdrive -name MyReg -psprovider Registry -root HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto
Update\Results\Install\
Is there a space in that AutoUpdate name or was that just an artifact of
line wrap and posting? PS didn't like it like that. Aha. There is a space
so I need to use quotes:
new-psdrive -name MyReg -psprovider Registry -root "HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto
Update\Results\Install\"
But now when I use
set-location MyReg:
and
dir
I get nothing?
In contrast when I back up one level to the parent key I get
<PS_Output>
Hive: Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\WindowsUp
\Auto Update\Results
SKC VC Name Property
--- -- ---- --------
0 2 Detect {LastSuccessTime, LastError}
0 2 Download {LastSuccessTime, LastError}
0 2 Install {LastSuccessTime, LastError}
</PS_Output>
So now the only remaining task will be figuring out how to get some details
about those "properties" (which are obviously the Value names that RegEdit
shows under those subkeys).
Good luck
Robert
---
Post by carlklammer08I 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...
Do you or anybody got an idea what causes this?