Skip to content

Commit e89f5be

Browse files
committed
Downcast $envOSProductType back to int for backwards compatibility.
1 parent 9f94922 commit e89f5be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PSAppDeployToolkit/Private/New-ADTEnvironmentTable.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function Private:New-ADTEnvironmentTable
186186
$variables.Add('envOSVersionRevision', $(if ($variables.envOSVersion.Revision -ge 0) { $variables.envOSVersion.Revision }))
187187

188188
# Get the operating system type.
189-
$variables.Add('envOSProductType', $osInfo.ProductType)
189+
$variables.Add('envOSProductType', [System.Int32]$osInfo.ProductType)
190190
$variables.Add('IsServerOS', $variables.envOSProductType -eq 3)
191191
$variables.Add('IsDomainControllerOS', $variables.envOSProductType -eq 2)
192192
$variables.Add('IsWorkstationOS', $variables.envOSProductType -eq 1)

0 commit comments

Comments
 (0)