diff --git a/Get-PC.psd1 b/Get-PC.psd1 index 11f8178..fb93875 100644 --- a/Get-PC.psd1 +++ b/Get-PC.psd1 @@ -12,7 +12,7 @@ RootModule = 'Get-PC.psm1' # Version number of this module. -ModuleVersion = '0.4.5' +ModuleVersion = '0.4.6' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/Private/BatchInvokes.ps1 b/Private/BatchInvokes.ps1 index a997311..000e8c8 100644 --- a/Private/BatchInvokes.ps1 +++ b/Private/BatchInvokes.ps1 @@ -302,9 +302,10 @@ function Get-PCBatchInvoke { Default {$chassisType = "Unknown Model/Chassis"} } + Write-Progress -Activity "Retrieving data from online computers" -Status "$Env:COMPUTERNAME | Querying Spark!... Timeout 100s" -PercentComplete 90 $uri = "${using:Tenant}/api/odata/businessobject/cis`?`$filter=Name eq '$ENV:COMPUTERNAME'&`$top=1&`$skip=0" try { - $Query = Invoke-RestMethod -Method GET -uri $uri -headers ${using:Headers} + $Query = Invoke-RestMethod -Method GET -uri $uri -headers ${using:Headers} -TimeoutSec 100 } catch { Write-Host $_.Exception.Message } diff --git a/patchnotes.txt b/patchnotes.txt index aa09cee..91fd33e 100644 --- a/patchnotes.txt +++ b/patchnotes.txt @@ -1,3 +1,6 @@ +Patch: 2024-09-05 +-Fix Spark! hangs sometimes, added timeout in BatchInvokes + Patch: 2024-09-04 -Add Logging for GetPCWrapped -Fix Ambiguous CMDB results now report error message