SCCM Query Block uses asset tag to query spark
This commit is contained in:
parent
42455ff903
commit
7c451bb82c
|
|
@ -219,7 +219,7 @@ $Headers = @{
|
||||||
Write-Progress -Activity "Getting SCCM data for $comp" -Status 'Querying for CMDB data' -PercentComplete $progress -ParentID 0 -Id $PCID
|
Write-Progress -Activity "Getting SCCM data for $comp" -Status 'Querying for CMDB data' -PercentComplete $progress -ParentID 0 -Id $PCID
|
||||||
|
|
||||||
$timeout = if ($SparkQueryTimeoutSec) {$SparkQueryTimeoutSec} else {5}
|
$timeout = if ($SparkQueryTimeoutSec) {$SparkQueryTimeoutSec} else {5}
|
||||||
$uri = "$Tenant/api/odata/businessobject/cis`?`$filter=Name eq '$comp'&`$top=1&`$skip=0"
|
$uri = "$Tenant/api/odata/businessobject/cis`?`$filter=AssetTag eq '$FindAssetTagSCCM'&`$top=1&`$skip=0"
|
||||||
try {
|
try {
|
||||||
$Query = Invoke-RestMethod -Method GET -uri $uri -headers $Headers -TimeoutSec $timeout
|
$Query = Invoke-RestMethod -Method GET -uri $uri -headers $Headers -TimeoutSec $timeout
|
||||||
if ($Query) {
|
if ($Query) {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
Patch
|
||||||
|
-Update SCCMQueryBlock uses asset tag to query Spark!
|
||||||
|
|
||||||
Patch 2025-5-6
|
Patch 2025-5-6
|
||||||
-Update Custom SHSApps have more robust detection
|
-Update Custom SHSApps have more robust detection
|
||||||
-Fix SCCM queries return mac address correctly
|
-Fix SCCM queries return mac address correctly
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue