Skip to content

Commit 07f07f4

Browse files
committed
Downcast $envOSProductType back to int for backwards compatibility.
1 parent 46e9273 commit 07f07f4

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
@@ -181,7 +181,7 @@ function Private:New-ADTEnvironmentTable
181181
$variables.Add('envOSVersionRevision', $(if ($variables.envOSVersion.Revision -ge 0) { $variables.envOSVersion.Revision }))
182182

183183
# Get the operating system type.
184-
$variables.Add('envOSProductType', $osInfo.ProductType)
184+
$variables.Add('envOSProductType', [System.Int32]$osInfo.ProductType)
185185
$variables.Add('IsServerOS', $variables.envOSProductType -eq 3)
186186
$variables.Add('IsDomainControllerOS', $variables.envOSProductType -eq 2)
187187
$variables.Add('IsWorkstationOS', $variables.envOSProductType -eq 1)

0 commit comments

Comments
 (0)