diff --git a/assets/templates/to_md.ps1 b/assets/templates/to_md.ps1 index a57d5765..0d79e528 100644 --- a/assets/templates/to_md.ps1 +++ b/assets/templates/to_md.ps1 @@ -273,7 +273,7 @@ Set-DbadocsOSearch -OutputFolder $OutputFolder -ContentFolder $ContentFolder #create all pages try { - $maxConcurrentJobs = (Get-CimInstance -ClassName Win32_Processor -Property NumberOfCores | Measure-Object -Property 'NumberOfCores' -Sum).Sum + [int]$maxConcurrentJobs = [Environment]::ProcessorCount } catch { $maxConcurrentJobs = 4 }