Hello again AppDeploy community!

As the title of the present post dictates: a few simple lines of code, yet a very weird problem.

Here is what I want: to list all registry keys using EnumKey. What I have is the following:


Const HKEY_USERS = &H80000003
strComputer = "."

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"& strComputer & "\root\default:StdRegProv")
strKeyPath = ""
objReg.EnumKey HKEY_USERS, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
WScript.Echo "Subkey = " & subkey
Next
WScript.Echo "Finished"


Pretty simple right?

Indeed, on my XP workstations, I get the following results (just a few to alleviate the message):
Subkey = .DEFAULT
Subkey = S-1-5-19
Subkey = S-1-5-19_Classes
Subkey = S-1-5-20
etc etc

Same code, run on a Windows 2000 workstation, I get the following:
AppEvents
Console
ControlPanel
Environment
etc

I have no clue why!!!!! Can any of you help me out with my problem?

Thank you!

Stephane
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Nevermind...May have just answered myself with http://support.microsoft.com/?id=817478....

I'll confirm in a minute after I install the hotfix!
Answered 09/14/2009 by: Fau
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity