Skip to content

Commit ed3b3f1

Browse files
authored
Merge pull request AutomatedLab#1034 from astavitsky/fix/processorcount
Fix processor count on multi-processor systems
2 parents 307d42a + 9c12d6f commit ed3b3f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AutomatedLabDefinition/AutomatedLabDefinition.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2733,7 +2733,7 @@ function Add-LabMachineDefinition
27332733
}
27342734
else
27352735
{
2736-
(Get-CimInstance -Namespace Root\CIMv2 -Class win32_processor).NumberOfLogicalProcessors
2736+
(Get-CimInstance -Namespace Root\CIMv2 -Class win32_processor | Measure-Object NumberOfLogicalProcessors -Sum).Sum
27372737
}
27382738
}
27392739
if ($script:processors -ge 2)

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- Fixes issue with DSC Pull Server role validation so that SQL2016 and newer is supported
2323
- Fixes an issue where SQL2019 sample databases were not installed correctly (#992)
2424
- Old types in Add / Get-Certificate2 threw many errors, fixed that.
25+
- Fixed processor count on multi-processor systems.
2526

2627
## 5.22.0 - 2020-07-10
2728

0 commit comments

Comments
 (0)