Note: You should update any bookmarks to point to https://kb.filewave.com We will be working on links from FW Central/Anywhere that still come to this Atlassian site over the next couple of releases and then phasing out this site entirely in Jan 2024.
Detecting the Display Model using a Custom Field
Use a FileWave Custom Field to store the model of display connected to a Mac or Windows system.
FileWave 13.1.0+
- Download the following Custom Field export.
- Import the downloaded file into "FileWave Admin>Assistants>Custom Fields>Edit Custom Fields>Import".
- Save changes within Custom Fields dialog.
- Associate Custom Field with desired Windows devices via "right-click>Edit Custom Field(s) Associations" or check the "Assigned to all devices" checkbox when editing the Custom Field.
- A Smart Group is very helpful to quickly associate Custom Field
FileWave 12.7.0 - 13.0.3
- Create new Custom Field via "FileWave Admin>Assistants>Custom Fields>Edit Custom Fields>[+]".
- Change the Custom Fields to the following:
- Name: Display Model
- Internal name: display_model
- Description: [optional]
- Provided By: Client Script
- Data Type: String
- Use default value: Pending...
- Client Script>Windows: PowerShell
- Copy/paste the following script into the scripting box under the Windows section:Display Model
$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
Copy/paste the following script into the scripting box under the macOS section:
Display Model#!/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
- Save changes within Custom Fields dialog.
- Associate Custom Field with desired devices via "right-click>Edit Custom Field(s) Associations" or check the "Assigned to all devices" checkbox when editing the Custom Field.
- A Smart Group can be helpful to quickly associate Custom Field
Results
Related articles
Content by label
There is no content with the specified labels