3 Replies Latest reply on Oct 22, 2013 12:54 AM by Ruebezahl2

    Need help with a WMI query

    Rookie

      Hi,

       

      i'm trying to make a WMI query at the "inventory" - "user defined data". With WMI Explorer i got the following values:

      Name Space: Root\CIMV2

      Class: Win32_PnPEntity

      Instance: KPCI-488 GPIB Interface

      Caption: KPCI-488 GPIB Interface

       

      In Landesk i have:

      Name Space

      Class Name

      Display Object

      Property Name

      Display Name

       

      Does anyone know where i have to insert the individual "WMI values" in the "Landesk Property box"? "Name Space" and "Class" is evident, but the remaining...

       

      Many thanks for your help.

       

      Helmut

        • 1. Re: Need help with a WMI query
          Specialist

          Hi Helmut,

           

          The documentation at the link below should help. 

          http://help.landesk.com/Topic/Index/ENU/LDMS/9.5/Content/Windows/inv_t_add_custom_wmi_items.htm

           

          Name Space - Root\CIMV2

          Class Name - Win32_PnPEntity

          Display Object - Custom Data - PNP devices (where to put in inventory separated by "-"

          Property Name - Caption

          Display Name - Name of PNP device is (optional field to rename the property field to something more useful)

          • 2. Re: Need help with a WMI query
            Rookie

            Hi synsa,

             

            thx for your help. I've already used the Landesk-Help, so i knew of the document you've linked.

            But my problem is, if i use the following wmi-entries in the landesk wmi-scan-property window, landesk show me the "caption"-property of the first device/item that is found under "Win32_PnPEntity" (for example on different computers "ACPI-Multiprocessor-PC", "Microsoft PS/2 Mouse", "USB Flash Disk Device", ...).

             

            Name Space:         Root\CIMV2

            Class Name:          Win32_PnPEntity

            Display Object:      Keithley card

            Property Name:     Caption

            Display Name:       Keithley card type

             

            I need either all "Captions" under Win32_PnPEntity or (my prefered method) a query for the special caption "KPCI-488 GPIB Interface". Is this possible?

            • 3. Re: Need help with a WMI query
              Rookie

              Landesk-Support told me that it is not possible to scan for a class with multiple entries of the same name (only Landesk Data Analytics can do that).

               

              For my problem the best way is to deploy a script that would write the wished information in the registry and then query with "user defined data".