We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$envOSProductType
1 parent 46e9273 commit 07f07f4Copy full SHA for 07f07f4
1 file changed
src/PSAppDeployToolkit/Private/New-ADTEnvironmentTable.ps1
@@ -181,7 +181,7 @@ function Private:New-ADTEnvironmentTable
181
$variables.Add('envOSVersionRevision', $(if ($variables.envOSVersion.Revision -ge 0) { $variables.envOSVersion.Revision }))
182
183
# Get the operating system type.
184
- $variables.Add('envOSProductType', $osInfo.ProductType)
+ $variables.Add('envOSProductType', [System.Int32]$osInfo.ProductType)
185
$variables.Add('IsServerOS', $variables.envOSProductType -eq 3)
186
$variables.Add('IsDomainControllerOS', $variables.envOSProductType -eq 2)
187
$variables.Add('IsWorkstationOS', $variables.envOSProductType -eq 1)
0 commit comments