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