From 3551de4ac0885e5106c890c1015a5a09d9aee4cf Mon Sep 17 00:00:00 2001 From: Zachary Gorman Date: Fri, 28 Feb 2025 13:11:38 -0800 Subject: [PATCH] Spark queries by asset tag and elo monitors in Devices --- Get-PC/Private/Get-Devices.ps1 | 1 + Get-PC/Private/PCLocal.ps1 | 2 +- Get-PC/patchnotes.txt | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Get-PC/Private/Get-Devices.ps1 b/Get-PC/Private/Get-Devices.ps1 index d02bd2d..78dbdfd 100644 --- a/Get-PC/Private/Get-Devices.ps1 +++ b/Get-PC/Private/Get-Devices.ps1 @@ -56,6 +56,7 @@ function Get-Devices { 'DELL P2417H'= @('DP','HDMI','VGA'); 'DELL P2422H'= @('DP','HDMI','VGA'); 'DELL P2425H'= @('DP','HDMI'); + 'ELO ET2403LM'= @('HDMI','VGA'); } foreach($item in $monitors){ diff --git a/Get-PC/Private/PCLocal.ps1 b/Get-PC/Private/PCLocal.ps1 index d3adb16..b2f6870 100644 --- a/Get-PC/Private/PCLocal.ps1 +++ b/Get-PC/Private/PCLocal.ps1 @@ -311,7 +311,7 @@ $timeout = if ($SparkQueryTimeoutSec) {$SparkQueryTimeoutSec} else {5} Write-Progress -Activity "Retrieving data from $Env:COMPUTERNAME" -Status "Querying Spark! for location details. Timeout $($timeout)s" -PercentComplete 95 - $uri = "$Tenant/api/odata/businessobject/cis`?`$filter=Name eq '$ENV:COMPUTERNAME'&`$top=1&`$skip=0" + $uri = "$Tenant/api/odata/businessobject/cis`?`$filter=AssetTag eq '$assetTag'&`$top=1&`$skip=0" try { $Query = Invoke-RestMethod -Method GET -uri $uri -headers $Headers -TimeoutSec $timeout if ($Query) { diff --git a/Get-PC/patchnotes.txt b/Get-PC/patchnotes.txt index 3067082..77bae6e 100644 --- a/Get-PC/patchnotes.txt +++ b/Get-PC/patchnotes.txt @@ -1,3 +1,7 @@ +Patch +-Fix Queries Spark! by asset tag rather than hostname to also hit in stock workstations +-Add Elo monitor ports to -devices + Patch 2025-2-24 -Fix Devices and DevicesUnplugged 1.4x speedup -Add More possible paths for Config Manager Remote Viewer