"carlklammer08" <carlklammer08@discussions.microsoft.com> wrote in message
news

4638941-FD26-4A93-80A2-1B89E8276A19@microsoft.com...
> Hello Robert,
>
> I found the key, with a GMT date and time information in it, which should
> normally be easy to read out.
> 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".
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\Wi ndowsUpdate\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\W indowsUpdate\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_MAC HINE\Software\Microsoft\Windows\CurrentVersion\Win dowsUp
\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
---
>
> 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...
>
> Do you or anybody got an idea what causes this?