Spark queries by asset tag and elo monitors in Devices
This commit is contained in:
parent
2a2d2aef09
commit
3551de4ac0
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue