Skip to content

Commit 9510f1f

Browse files
committed
fixed CPU count calculation
1 parent 59115ad commit 9510f1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Scripts/3_Deploy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ If (-not $isAdmin) {
970970
$TimeZone=(Get-TimeZone).id
971971

972972
#Grab number of processors
973-
Get-CimInstance -ClassName "win32_processor" | ForEach-Object { $global:NumberOfLogicalProcessors += $_.NumberOfLogicalProcessors }
973+
Get-CimInstance -ClassName "win32_processor" | ForEach-Object { $global:NumberOfLogicalProcessors += $_.NumberOfEnabledCore }
974974

975975
#Calculate highest VLAN (for additional subnets)
976976
[int]$HighestVLAN=$LabConfig.AllowedVLANs -split "," -split "-" | Select-Object -Last 1

0 commit comments

Comments
 (0)