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

Why do you need a Mof mod to find Flash?

I Have a report that finds it among other things.

It is meant for my enviornment but it should give yo what you need.

******************************************************

Select arp.DisplayName0 AS Product
, count(*) as 'Count'
, col.Name AS [Agency]
FROM v_R_System sys
 JOIN v_GS_ADD_REMOVE_PROGRAMS arp ON sys.ResourceID = arp.ResourceID
 JOIN v_FullCollectionMembership fcm on sys.ResourceID=fcm.ResourceID
 AND CollectionID IN (SELECT subCollectionID FROM dbo.v_CollectToSubCollect WHERE ParentCollectionID = 'PAC0004a')
 INNER JOIN dbo.v_Collection AS col ON fcm.CollectionID = col.CollectionID

WHERE (arp.DisplayName0 like 'Microsoft Office Prof%' 
Or arp.DisplayName0 like 'Microsoft Office 2000 Prem%'
Or arp.DisplayName0 like 'Microsoft Office 2000 SR-1 Prem%' 
Or arp.DisplayName0 like 'Microsoft Office 2000 SR-1 Prof%' 
Or arp.DisplayName0 like 'Microsoft Office 2000 Stan%' 
Or arp.DisplayName0 like 'Microsoft Office 2000 SR-1 Stan%' 
Or arp.DisplayName0 like 'Microsoft Office XP Stan%' 
Or arp.DisplayName0 like 'Microsoft Office XP Sma%'
Or arp.DisplayName0 like 'Microsoft Office XP Professional %'
Or arp.DisplayName0 like 'Microsoft Office Professional Edition 2003%'
Or arp.DisplayName0 like 'Microsoft Office Professional 2007%'
Or arp.DisplayName0 like 'Microsoft Office Professional Plus 2007%'
Or arp.DisplayName0 like 'Microsoft Office Enterprise 2007%'
Or arp.DisplayName0 like 'Microsoft Office Ultimate 2007%'
Or arp.DisplayName0 LIKE 'Adobe Flash Player 8%'
Or arp.DisplayName0 LIKE 'Adobe Flash Player 9%'
Or arp.DisplayName0 LIKE 'Adobe Flash Player 10%'
Or arp.DisplayName0 LIKE 'Adobe Flash Player 11%'
Or arp.DisplayName0 LIKE 'Adobe Reader 1%'
Or arp.DisplayName0 LIKE 'Adobe Reader 2%'
Or arp.DisplayName0 LIKE 'Adobe Reader 3%'
Or arp.DisplayName0 LIKE 'Adobe Reader 4%'
Or arp.DisplayName0 LIKE 'Adobe Reader 5%'
Or arp.DisplayName0 LIKE 'Adobe Reader 6%'
Or arp.DisplayName0 LIKE 'Adobe Reader 7%'
Or arp.DisplayName0 LIKE 'Adobe Reader 8%'
Or arp.DisplayName0 LIKE 'Adobe Reader 9%'
or arp.DisplayName0 LIKE 'Windows Internet Explorer 7%'
Or arp.DisplayName0 LIKE 'Java%'
OR arp.DisplayName0 LIKE 'J2SE%'
OR arp.DisplayName0 LIKE 'Java %Runtime Environment%'
OR arp.DisplayName0 LIKE 'J2SE %Runtime Environment%'
)
GROUP BY DisplayName0, col.Name

*********************************************************


Thanks,
Christopher Stauffer <><
Enterprise SMS Admin
MCTS ConfigMgr 2007
MCP SMS 2003
Email: CStauffer@myitforum.com
Blog: http://myitforum.com/cs2/blogs/cstauffer/


From: "Hector C." <cortez00@gmail.com>
Sent: Wednesday, January 07, 2009 10:18 AM
To: mssms@lists.myitforum.com
Subject: RE: [mssms] verify below SCCM mof snipet to report all versions of Flash

Thanks Sherry, yeah I have that corrected in my mof just forgot to change it in the email. J This is weird

 

From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf Of Sherry Kissinger
Sent: Wednesday, January 07, 2009 9: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/


==============
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