Re: Help with extending MOF to add Registry info - SMS 2003
- From: "Victag" <miketaggart@xxxxxxxxx>
- Date: 4 Dec 2006 12:29:33 -0800
I have changed my MOF to what is below, and am now getting the error
"Error occurred while processing item 3 lines 51-59...Class has
instances".
I am stumped! Here is what I am using:
// Adding LastRealUser
//=====================================================================
//=====================================================================
// Phase 1 Defined: Registering the System Registry Provider
//=====================================================================
#pragma namespace("\\\\.\\root\\cimv2")
instance of __Win32Provider as $PropProv3
{
Name ="RegPropProv" ;
ClsID = "{72967901-68EC-11d0-B729-00AA0062CBB7}";
};
instance of __PropertyProviderRegistration
{
Provider = $PropProv3;
SupportsPut = TRUE;
SupportsGet = TRUE;
};
//=====================================================================
// Phase 2 Defined: Defining a Registry Class With Qualifiers
//=====================================================================
[DYNPROPS]
class LastRealUser
{
[key]string LastUserName;
};
[DYNPROPS]
instance of LastRealUser
{
[PropertyContext("local|HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\WinLogon|DefaultUserName"),
Dynamic, Provider("RegPropProv")] LastUserName;
};
//=====================================================================
//Phase 3 Defined: Reporting Inventory for a New Hardware Class
//=====================================================================
#pragma namespace("\\\\.\\root\\cimv2\\sms")
[SMS_Report(TRUE),
SMS_Group_Name("LastRealUser"),
SMS_Class_ID("MICROSOFT|LastRealUser|1.0")]
class LastRealUser : SMS_Class_Template
{
[SMS_Report(TRUE)]
string LastUserName;
};
-----------------------------------------
.
- Follow-Ups:
- References:
- Prev by Date: Help with extending MOF to add Registry info - SMS 2003
- Next by Date: Re: Help with extending MOF to add Registry info - SMS 2003
- Previous by thread: Help with extending MOF to add Registry info - SMS 2003
- Next by thread: Re: Help with extending MOF to add Registry info - SMS 2003
- Index(es):
Relevant Pages
|