CA Client Automation

 View Only
  • 1.  WMI Inventory for Specific Software

    Posted Apr 07, 2017 10:48 AM

    If I add this as an inventory module, how can I apply filters to include only specific software?  Is there a line to filter results?

     

    [Config]

    Version=2

    Component=WBEM Inventory

     

    [Namespace=ROOT\CIMV2]

    Enumeration=INCLUDE

    Property=Win32_Product.Name

    Property=Win32_Product.Version



  • 2.  Re: WMI Inventory for Specific Software

    Posted Apr 07, 2017 10:59 AM

    Hi Bill,

     

    No, there is no filter on the WBEM module, it gets what it gets. If you need to get filtered inventory from WMI, I suggest using a script and WMIC commands to extract and process the WMI data however you need it.

     

    Having said that, what are you actually trying to achieve here? What software inventory data is in WMI which is not in either signature or heuristic software scans?

     

    Steve McCormick, ITIL

    CA Technologies

    Principal Services Consultant

    Stephen.McCormick@ca.com

    <mailto:Stephen.McCormick@ca.com>



  • 3.  Re: WMI Inventory for Specific Software

    Posted Apr 07, 2017 11:06 AM

    We need specific build numbers for Microsoft Office components.  CA changed the CA provided signatures for MS office to give a 16.0.0.0 general version.



  • 4.  Re: WMI Inventory for Specific Software

    Broadcom Employee
    Posted Apr 07, 2017 11:12 AM

    Why not use an intelisig.

     

     

     

    Sent from my Verizon, Samsung Galaxy smartphone



  • 5.  Re: WMI Inventory for Specific Software

    Posted Apr 07, 2017 11:14 AM

    OK yes I saw that in the community. You can use:

     

                    wmic product get name, version, vendor

    embedded in a DMscript. Redirect the result to a file, read it back and look for the products you want, create a MIF for it.

     

    You could also use VB:

     

    strComputer = "."

    Set objWMIService = GetObject("winmgmts:" _

        & "{impersonationLevel=impersonate}!
    " _

        & strComputer & "\root\cimv2")

    Set colSoftware = objWMIService.ExecQuery(_

        "Select * from Win32_Product " & _

        "Where IdentifyingNumber =" _

            & " '{90280409-6000-11D3-8CFE-0050048383C9}'")

    For Each objItem in colSoftware

        Wscript.Echo "Name: " & objItem.Name

        Wscript.Echo "Version: " & objItem.Version

    Next

     

    But with VB you would have to write the MIF manually whereas DMScript will do it with a couple of function calls.

     

    Steve McCormick, ITIL

    CA Technologies

    Principal Services Consultant

    Stephen.McCormick@ca.com

    <mailto:Stephen.McCormick@ca.com>



  • 6.  Re: WMI Inventory for Specific Software

    Broadcom Employee
    Posted Apr 07, 2017 11:16 AM

    Or if you want it as software inventory use an inteliisig.

     

     

     

    Sent from my Verizon, Samsung Galaxy smartphone



  • 7.  Re: WMI Inventory for Specific Software

    Broadcom Employee
    Posted Apr 07, 2017 11:15 AM

    I created one a few months back for a customer.  I will track it down and send it to you over the weekend.  I am on leave today through Wednesday but I have my laptop so assuming I can get on my mother's network I will send it.

     

     

     

    Sent from my Verizon, Samsung Galaxy smartphone