Can customize SMS2003 SMS_DEF.MOF for...???
- From: "Michael L via WinServerKB.com" <u8463@uwe>
- Date: Sat, 15 Oct 2005 23:33:05 GMT
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
.
- Follow-Ups:
- Re: Can customize SMS2003 SMS_DEF.MOF for...???
- From: Joseph Calabig [MSFT]
- Re: Can customize SMS2003 SMS_DEF.MOF for...???
- Prev by Date: Re: Hardware Inventory Problem
- Next by Date: Can customize MOF for...??? #2
- Previous by thread: sms_def.mof - Need only selected environment variables
- Next by thread: Re: Can customize SMS2003 SMS_DEF.MOF for...???
- Index(es):
Relevant Pages
|
Loading