Skip to content

Commit

Permalink
Include situation when server is a Domain Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
junyemagna committed Sep 9, 2021
1 parent 3f08ce8 commit b6412a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function Get-TargetResource
return $nullReturn
}
}
elseif ($OSInfo.ProductType -eq 3)
elseif (($OSInfo.ProductType -eq 2) -or ($OSInfo.ProductType -eq 3)) # ProductType=3 Windows Server, ProductType=2 Domain Controller, which is also Windows Server
{
Write-Verbose -Message "Windows Server OS Detected"

Expand Down

0 comments on commit b6412a4

Please sign in to comment.