Re: Help with registry inventory



Below I'm using the Registry Instance Provider to read the registry for
Make, Model, and Version. This is an example only!!!

Caveats: I don't know the exact registry structure you're looking into so
this is my best guess. I don't know the data types for the values so once
again, below is my best guess.

This ought to be enough to get you started though, let me know if you have
any issues or need more assistance.

//=====================================================================
// Start ZTI Information
//=====================================================================
#pragma namespace("\\\\.\\root\\cimv2")
#pragma deleteclass("ZTI_Info",NOFAIL)

[ dynamic, provider("RegProv"),
ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\ZTI")
]
class ZTI_Info
{
[PropertyContext("Make"),Key] string Make;
[PropertyContext("Model")] string Model;
[PropertyContext("Version")] uint32 Version;
};

#pragma namespace("\\\\.\\root\\cimv2\\sms")

[SMS_Report(TRUE), SMS_Group_Name("ZTI Info"),
SMS_Class_ID("SMSExpert|ZTI_Info|1.0")]
class ZTI_Info : SMS_Class_Template
{
[SMS_Report(TRUE),Key] string Make;
[SMS_Report(TRUE)] string Model;
[SMS_Report(TRUE)] uint32 Version;
};
//=====================================================================
// End ZTI Information
//=====================================================================

Jeff Gilbert
jgilbert@xxxxxxxxxxxxx
MOF Master
SMSExpert.com

"Gomer Pyle" <gomer_pyle@xxxxxxxxxxxxxxxxxx> wrote in message
news:%23xAbNFMyFHA.2516@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> Can someone please tell me how to inventory the registry? I need to check
> the values for the keys:
>
> HKLM\Software\ZTI\Make
> HKLM\Software\ZTI\Modell
> HKLM\Software\ZTI\Version
>
> Regards,
> GP
>


.



Relevant Pages

  • Re: Help with registry inventory
    ... > Below I'm using the Registry Instance Provider to read the registry for ... > // Start ZTI Information ... >> Can someone please tell me how to inventory the registry? ...
    (microsoft.public.sms.inventory)
  • Re: Large 320Gb drive for Win 2000
    ... I read about a patch on the Microsoft but there are so many fine print "out" ... playing around with the registry). ... (the caveats on MS site were not ...
    (microsoft.public.win2000.general)

Loading