Re: Can customize SMS2003 SMS_DEF.MOF for...???
- From: "Joseph Calabig [MSFT]" <jcalabig@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 20 Oct 2005 13:50:08 -0700
try looking for more info about wmi's view provider. It might help you
specify the conditions you want.
Then you can modify sms to query this class.
--
Thanks,
Joseph Calabig
This posting is provided "AS IS" with no warranties, and confers no rights.
"Michael L via WinServerKB.com" <u8463@uwe> wrote in message
news:55e5afd5caaec@xxxxxx
> When inventory is taken for Add/Remove Programs,
> it pulls all the entries within the "Uninstall" reg key.
>
> But alot/most of these entries are for additional components that
> the "main" app installed behind the scenes, and don't show up if
> go to the PCs Add/Remove Programs list (only the main app is listed).
>
> Would like to have SMS only "pull" the main apps.
>
> Back before we got SMS I wrote a VBS to pull this info.
> What I keyed on was if the DisplayName<>"" AND UninstallSting<>""
>
> Possible to do either:
> #1- add the above "filter" to the MOF somehow?
> or
> #2- add the UninstallString reg entry to the MOF inventory?
> (then could filter within the reports)
>
> Note-
> I tried adding the lines:
> [PropertyContext("UninstallString")]
> string UninstallString;
> and
> [SMS_Report (TRUE) ]
> string UninstallString;
> to my def.MOF
> But now in SMS my test box has no entries for Add/Remove Programs.
> Took the lines out, redid inventory-still nothing, so hosed up something
>
>
> ****from my orig SMS_DEF.MOF****
> //----------------------
> // Add Remove Programs
> //----------------------
> #pragma namespace ("\\\\.\\root\\cimv2")
> [ dynamic,
> provider("RegProv"),
> ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\
> CurrentVersion\\Uninstall")
> ]
> class Win32Reg_AddRemovePrograms
> {
> [key]
> string ProdID;
> [PropertyContext("DisplayName")]
> string DisplayName;
> [PropertyContext("InstallDate")]
> string InstallDate;
> [PropertyContext("Publisher") ]
> string Publisher;
> [PropertyContext("DisplayVersion")]
> string Version;
> };
>
> #pragma namespace ("\\\\.\\root\\cimv2\\sms")
> [ SMS_Report (TRUE),
> SMS_Group_Name ("Add Remove Programs"),
> SMS_Class_ID ("MICROSOFT|ADD_REMOVE_PROGRAMS|1.0") ]
> class Win32Reg_AddRemovePrograms : SMS_Class_Template
> {
> [SMS_Report (TRUE), key ]
> string ProdID;
> [SMS_Report (TRUE) ]
> string DisplayName;
> [SMS_Report (TRUE) ]
> string InstallDate;
> [SMS_Report (TRUE) ]
> string Publisher;
> [SMS_Report (TRUE) ]
> string Version;
> };
> //----------------------
>
>
> --
> Message posted via WinServerKB.com
> http://www.winserverkb.com/Uwe/Forums.aspx/sms-inventory/200510/1
.
- References:
- Can customize SMS2003 SMS_DEF.MOF for...???
- From: Michael L via WinServerKB.com
- Can customize SMS2003 SMS_DEF.MOF for...???
- Prev by Date: Re: not getting any hardware inventory from clients
- Next by Date: Re: Can customize MOF for...??? #2
- Previous by thread: Can customize SMS2003 SMS_DEF.MOF for...???
- Next by thread: Can customize MOF for...??? #2
- Index(es):
Relevant Pages
|
Loading