/build/static/layout/Breadcrumb_cap_w.png

Few simple lines of code, WEIRDEST of problems...

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

Answers (1)

Posted by: Fau 14 years ago
Senior Purple Belt
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!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ