diff --git a/lib/parallel.rb b/lib/parallel.rb index 82b9ea1..409677b 100644 --- a/lib/parallel.rb +++ b/lib/parallel.rb @@ -357,7 +357,7 @@ def worker_number=(worker_num) def physical_processor_count_windows # Get-CimInstance introduced in PowerShell 3 or earlier: https://learn.microsoft.com/en-us/previous-versions/powershell/module/cimcmdlets/get-ciminstance?view=powershell-3.0 result = run( - 'powershell -command "Get-CimInstance -ClassName Win32_Processor ' \ + 'powershell -command "Get-CimInstance -ClassName Win32_Processor -Property NumberOfCores ' \ '| Select-Object -Property NumberOfCores"' ) if !result || $?.exitstatus != 0