Skip to main content

Detecting the Display Model using a Custom Field

Use a FileWave Custom Field to storecollect the display model ofreported by Mac and Windows devices. This is useful when you want display connectedinformation toavailable ain Macinventory, Smart Groups, or Windowsdevice system.lists without manually checking each computer.

Adding the Custom Field

  1. Download the following Custom Field export -export: Display Model Custom Field.customfields.
  2. In FileWave Admin, go to Assistants > Custom Fields > Edit Custom Fields > Import and import the downloaded file into "FileWave Admin>Assistants>Custom Fields>Edit Custom Fields>Import".file.
  3. Save the changes withinin the Custom Fields dialog.
  4. AssociateAssign the Custom Field withto desired Windowsthe devices viathat "should report display model information. You can right-click> selected devices and choose Edit Custom Field(s) Associations"Associations, use a Smart Group to target the field, or checkenable the "Assigned to all devices"devices checkbox whenwhile editing the Custom Field.
    • A Smart Group is very helpful to quickly associate Custom Field

    XkD4QOBSsTgFNRCY-embedded-image-ufhh50dc.pngDisplay Model Custom Field configured as a client script

      The

      Copy/pasteimported thefield followinguses a client script. The Windows section uses PowerShell scriptto intoread themonitor scriptinginformation boxfrom under the Windows section: ROOT\WMI:
      $MonitorList = Get-WmiObject -Class WmiMonitorID -Namespace "ROOT\WMI"
      $MonitorOutput = @()
        
      foreach ($monitor in $MonitorList) {
      $mon = @{}
      $manufacturer = $null
      $name = $null
        
      foreach($ch in $monitor.ManufacturerName) {
      if($ch -ne '00') {
      $manufacturer += [char]$ch
      }
      }
        
      foreach($ch in $monitor.UserFriendlyName) {
      if($ch -ne '00') {
      $name += [char]$ch
      }
      }
      $mon = $manufacturer + " " + $name
      $MonitorOutput += $mon
      }
      $MonitorOutput=$MonitorOutput -join ', '
      $MonitorOutput
      exit 0

        The

        Copy/pastemacOS thesection followinguses Shella shell script intoto theread scriptingdisplay boxdetails underfrom the macOS section: system_profiler:
        #!/bin/bash
        DisplayModel=`system_profiler SPDisplaysDataType | grep "Resolution:" -B1 | awk -v n=3 'NR%n==1' | sed "s/^[ \t]*//" | sed 's/:/,/g' | tr '\n' ' '`
        echo ${DisplayModel}
        exit 0

          After

          Savethe changesfield withinis imported and assigned, save the Custom Fields dialog.dialog Associateand Customallow Fieldclients to check in. Devices with desiredmore devicesthan viaone "right-click>Editattached Customdisplay Field(s)may Associations"report ormultiple checkdisplay themodels "Assignedas toa allcomma-separated devices" checkbox when editing the Custom Field.
            A Smart Group can be helpful to quickly associate Custom Field. Alternatively you can also simply assign the field to all devices. value.

            Results

            MIzqCnWhazar31KM-embedded-image-bj0vwy2i.pngOnce inventory has updated, add the Display Model column to the Clients view, use it in Smart Group criteria, or reference it anywhere Custom Field inventory values are useful.