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:
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
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)
Please log in to answer
Posted by:
Fau
15 years ago
Nevermind...May have just answered myself with http://support.microsoft.com/?id=817478....
I'll confirm in a minute after I install the hotfix!
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.
so that the conversation will remain readable.