globalstrata
MIS
Hello,
WARNING: I have no idea how to script but I have been trying to come up with the code that I need but seem to be stuck here because this does not output anything.
Basically, I would like to write a script that lists the CLSID, PROGID and version values of all the subkeys under HKEY_CLASS_ROOT\CLSID where a HKEY_CLASS_ROOT\CLSID\<CLSID>\CONTROL exist. How do I do this?
Thanks in advanced,
Gladys Rodriguez
GlobalStrata Solutions
Computer Repair, Website Design and Computer Consultant
Small Business Resources
Anime, Manga and Video Games
WARNING: I have no idea how to script but I have been trying to come up with the code that I need but seem to be stuck here because this does not output anything.
Code:
Const ForReading = 1, ForWriting = 2
Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
Const HKEY_CURRENT_CONFIG = &H80000005
strComputer = "."
strKeyPath = "CLSID"
Dim fso, Myfile
Set fso = CreateObject("Scripting.FileSystemObject")
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
' Open the file for write access.
On Error Resume Next
Set MyFile = fso.OpenTextFile("c:\temp\testfile.txt", ForWriting, True, OpenAsASCII)
objReg.EnumKey HKEY_CLASSES_ROOT, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
Write subkey
Next
objFile.Close
Basically, I would like to write a script that lists the CLSID, PROGID and version values of all the subkeys under HKEY_CLASS_ROOT\CLSID where a HKEY_CLASS_ROOT\CLSID\<CLSID>\CONTROL exist. How do I do this?
Thanks in advanced,
Gladys Rodriguez
GlobalStrata Solutions
Computer Repair, Website Design and Computer Consultant
Small Business Resources
Anime, Manga and Video Games