Re: Hardware Inventory of registry SMS 2003 sms_def.mof Help!
From: Joseph Calabig [MSFT] (jcalabig_at_microsoft.com)
Date: 06/17/04
- Next message: Steve Adams: "Re: Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Previous message: Steve Adams: "Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- In reply to: Steve Adams: "Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Next in thread: Steve Adams: "Re: Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Reply: Steve Adams: "Re: Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 15:55:26 -0700
WMI complained that you're editng a class definition while it has instances.
You should first delete these classes through wbemtest.exe then do your
mofcomp.
Or try mofcomp.exe -class:forceupdate your.mof
--
Thanks,
Joseph Calabig
This posting is provided "AS IS" with no warranties, and confers no rights.
"Steve Adams" <steven.adams@nospam.com> wrote in message
news:ueQ4exLVEHA.2944@tk2msftngp13.phx.gbl...
>I am trying to modify sms_def.mof to collect some extra registry
> information.
> I have tried to follow the the whitepaper (published June 14, 2002)
> But I am getting errors:
>
> The registry information I am trying to collect is:
>
>
>
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\CCCImageDetails]
> "Build Date"="8/06/2004"
> "Build Type"="CCCSTD"
> "Build Version"="1.1.165"
> "Imaged Date"="10/06/2004"
> "Domain"="CCITY"
> "AddStatus"="Complete"
> "JoinTime"="10/06/2004 11:24:45 a.m."
> "JoinVersion"="3.00 03-May-2004"
>
>
>
> The following has been added to the end of sms_def.mof
>
> // Workstation Build and Image details
> // USed for Windows XP Workstation
> // Build and Image Registry Keys
> //=====================================================================
>
> #pragma namespace ("\\\\.\\root\\cimv2")
>
> [DYNPROPS]
> class CCCImageDetails
> {
> [key]string Keyname="";
> string BuildDate;
> string BuildType;
> string BuildVersion;
> string ImagedDate;
> string Domain;
> string AddStatus;
> string JoinTime;
> string JoinVersion;
> };
>
> [DYNPROPS]
> instance of CCCImageDetails
> {
> KeyName = "CCCImageDetails";
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|Build
> Date"),
> Dynamic, Provider("RegPropProv")] BuildDate;
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|Build
> Type"),
> Dynamic, Provider("RegPropProv")] BuildType;
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|Build
> Version"),
> Dynamic, Provider("RegPropProv")] BuildVersion;
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|Imaged
> Date"),
> Dynamic, Provider("RegPropProv")] ImagedDate;
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|Domain
> "),
> Dynamic, Provider("RegPropProv")] Domain;
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|AddSta
> tus"),
> Dynamic, Provider("RegPropProv")] AddStatus;
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|JoinTi
> me"),
> Dynamic, Provider("RegPropProv")] JoinTime;
>
> [PropertyContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\CCCImageDetails|JoinVe
> rsion"),
> Dynamic, Provider("RegPropProv")] JoinVersion;
> };
>
>
> #pragma namespace ("\\\\.\\root\\cimv2\\sms")
>
> [ SMS_Report (TRUE),
> SMS_Group_Name ("CCC Image Details"),
> SMS_Class_ID ("CHRISTCHURCH_CITY_COUNCIL|CCCImageDetails|1.0") ]
>
> class CCCImageDetails : SMS_Class_Template
> {
> [SMS_Report (TRUE), key ]
> string KeyName;
> [SMS_Report(TRUE)]
> string BuildDate;
> [SMS_Report(TRUE)]
> string BuildType;
> [SMS_Report(TRUE)]
> string BuildVersion;
> [SMS_Report(TRUE)]
> string ImagedDate;
> [SMS_Report(TRUE)]
> string Domain;
> [SMS_Report(TRUE)]
> string AddStatus;
> [SMS_Report(TRUE)]
> string JoinTime;
> [SMS_Report(TRUE)]
> string JoinVersion;
> };
> // End
>
> The error I am getting is:
>
> M:\>mofcomp sms_defV2.mof
> Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.1106
> Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
> Parsing MOF file: sms_defV2.mof
> MOF file has been successfully parsed
> Storing data in the repository...
> An error occurred while processing item 104 defined on lines 4688 - 4708
> in
> file sms_defV2.mof:
> Error Number: 0x80041026, Facility: WMI
> Description: Class has instances
> Compiler returned error 0x80041001
>
> any ideas ?
>
>
- Next message: Steve Adams: "Re: Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Previous message: Steve Adams: "Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- In reply to: Steve Adams: "Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Next in thread: Steve Adams: "Re: Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Reply: Steve Adams: "Re: Hardware Inventory of registry SMS 2003 sms_def.mof Help!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|