Skip to content

Commit

Permalink
Changed string conversion to accomodate $Null values
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanhp committed Jun 16, 2018
1 parent b7b08de commit 7972125
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DSCResources/MSFT_xADDomain/MSFT_xADDomain.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ function Get-TargetResource
DomainName = $domain.DnsRoot;
ParentDomainName = $domain.ParentDomain;
DomainNetBIOSName = $domain.NetBIOSName;
ForestMode = (ConvertTo-DeploymentForestMode -Mode $forest.ForestMode).ToString()
DomainMode = (ConvertTo-DeploymentDomainMode -Mode $domain.DomainMode).ToString()
ForestMode = (ConvertTo-DeploymentForestMode -Mode $forest.ForestMode) -as [String]
DomainMode = (ConvertTo-DeploymentDomainMode -Mode $domain.DomainMode) -as [String]
}

return $targetResource;
Expand Down

0 comments on commit 7972125

Please sign in to comment.