From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Sherry Kissinger
Sent: Wednesday, January 07, 2009 10:05 AM
To: mssms@lists.myitforum.com
Subject: Re: [mssms] verify below SCCM mof snipet to report all versions of Flash

I've never had spaces in the section for class (in your case, Class Macromedia Flash Info : SMS_Class_Template)

Maybe change 'Macromeda Flash Info' to be just  Flash_Info , to match your other ones?



Sherry Kissinger
Microsoft MVP - ConfigMgr
mofmaster@smsexpert.com

--- On Wed, 1/7/09, Hector C. <cortez00@gmail.com> wrote:

From: Hector C. <cortez00@gmail.com>
Subject: [mssms] verify below SCCM mof snipet to report all versions of Flash
To: mssms@lists.myitforum.com
Date: Wednesday, January 7, 2009, 2:49 PM

Can someone review the mof snippet below, I’m trying to report back all Flash versions.  When I test and mofcomp -check it, its OK but when I update the production one I get the below error

Failed to convert MOF class/properties to policy; a retry will be attempted later...

 

AddtoSMSmof

 

//-- Start Macromedia Flash Info --

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

#pragma deleteclass("Falsh_Info",NOFAIL)

 

[SMS_Report(TRUE), SMS_Group_Name(“Flash Info" ), SMS_Class_ID(" MICROSOFT|Flash Info|1.0" )]

Class Macromedia Flash Info : SMS_Class_Template

{

[SMS_Report(TRUE),key] string KeyName;

[SMS_Report(TRUE)] string ComponentID;

[SMS_Report(TRUE)] string IsInstalled;

[SMS_Report(TRUE)] string Version;

};

 

Add to ConfigMof

 

#pragma namespace(" \\\\.\\root\\CIMV2" )

#pragma deleteclass(" Flash_Info" ,NOFAIL)

[DYNPROPS]

Class Flash_Info

{

[key] string KeyName=" " ;

           string ComponentID;

           string IsInstalled;

           string Version;

};

[DYNPROPS]

instance of Flash_Info

{

KeyName = " KeyNames" ;

[PropertyContext(" Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{D27CDB6E-AE6D-11cf-96B8-444553540000}|ComponentID" ),

Dynamic, Provider("RegPropProv" )] ComponentID;

[PropertyContext(" Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{D27CDB6E-AE6D-11cf-96B8-444553540000}|IsInstalled" ),

Dynamic, Provider(" RegPropProv" )] IsInstalled;

[PropertyContext(" Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{D27CDB6E-AE6D-11cf-96B8-444553540000}|Version" ),

Dynamic, Provider(" RegPropProv" )] Version;

};

//-- End Macromedia Flash Info --


==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/


==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/smslist/

Published with BlogMailr



Trackbacks

No Trackbacks

Comments

No Comments