Hello all, I am having troubles getting this to work. I need to list all the registry hey values and paths in the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key. I need to loop through the key, get all the value names and the paths. I cannot for the life of me to get this to work. Here is what I have:
I get an error Type Mismatch here
Can some one show me some code that will do this loop?
Thanks for the help,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
Congratulations!
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key. I need to loop through the key, get all the value names and the paths. I cannot for the life of me to get this to work. Here is what I have:
Code:
Const HKLM = &H80000002 'HKEY_LOCAL_MACHINE
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strKeyPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
strValueName = "SoundMAXPnP"
oReg.GetStringValue HKLM,strKeyPath,strValueName,strValue
WScript.Echo strValue
'Next
I get an error Type Mismatch here
Code:
WScript.Echo strValue
Can some one show me some code that will do this loop?
Thanks for the help,
timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
Congratulations!