Re: Can customize SMS2003 SMS_DEF.MOF for...???



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


.



Relevant Pages

  • Re: User based assignments not working when logged on via Remote Desktop (bug ?)
    ... SMS is getting this error from terminal services when it is ... I am not sure in which all circumstances, Terminal services would return ... >>> All my software is is assigned to AD usergroups and users can install ... >>> software based on their AD group membership in Add/Remove programs. ...
    (microsoft.public.sms.swdist)
  • Re: User based assignments not working when logged on via Remote Desktop (bug ?)
    ... If this service is not running then SMS will not get those ... > I checked if the SENS service is running and it is... ... >>> All my software is is assigned to AD usergroups and users can install ... >>> software based on their AD group membership in Add/Remove programs. ...
    (microsoft.public.sms.swdist)
  • Re: SMS Software Scan: Distinguishing Versions
    ... I think this reply is about 2 weeks late :-) Using software inventory will ... Did you try Add/Remove programs in Hardware Inventory? ... > OEM/Volume versions or MSDN instances. ... > "version" documentation on anything EXCEPT SMS. ...
    (microsoft.public.sms.inventory)
  • Re: How to get a report on pcs that DONT have a application installed
    ... For either sms 2.0 or sms 2003, Rod Trent's article about subselect query is ... > which pcs don't have an application registered in the Add/Remove Programs. ...
    (microsoft.public.sms.admin)
  • Re: Emulating Zenworks Application Explorer with SMS?
    ... Have a look at SoftGrid and the SMS Connector. ... feel is right for each app. ... applications to install on some collections, ... a user can traverse through the Application Explorer ...
    (microsoft.public.sms.setup)

Loading