@@ -5,8 +5,10 @@ Import-Module -Name (Join-Path -Path $modulePath `
55 - ChildPath (Join-Path - Path ' ActiveDirectoryCSDsc.Common' `
66 - ChildPath ' ActiveDirectoryCSDsc.Common.psm1' ))
77
8+ Import-Module - Name (Join-Path - Path $modulePath - ChildPath ' DscResource.Common' )
9+
810# Import Localization Strings.
9- $script :localizedData = Get-LocalizedData - ResourceName ' DSC_AdcsEnrollmentPolicyWebService '
11+ $script :localizedData = Get-LocalizedData - DefaultUICulture ' en-US '
1012
1113<#
1214 . SYNOPSIS
@@ -152,7 +154,7 @@ function Set-TargetResource
152154 $ ($script :localizedData.SettingAdcsEnrollmentPolicyWebServiceStatusMessage -f $AuthenticationType )
153155 ) -join ' ' )
154156
155- $adcsEnrollmentPolicyWebServiceParameters = @ {} + $PSBoundParameters
157+ $adcsEnrollmentPolicyWebServiceParameters = @ { } + $PSBoundParameters
156158 $null = $adcsEnrollmentPolicyWebServiceParameters.Remove (' Ensure' )
157159 $null = $adcsEnrollmentPolicyWebServiceParameters.Remove (' Debug' )
158160 $null = $adcsEnrollmentPolicyWebServiceParameters.Remove (' ErrorAction' )
@@ -191,9 +193,9 @@ function Set-TargetResource
191193 if (-not [System.String ]::IsNullOrEmpty($errorMessage ))
192194 {
193195 Write-Verbose - Message ( @ (
194- " $ ( $MyInvocation.MyCommand ) : "
195- $ ($script :localizedData.AdcsEnrollmentPolicyWebServiceErrorMessage -f $errorMessage )
196- ) -join ' ' )
196+ " $ ( $MyInvocation.MyCommand ) : "
197+ $ ($script :localizedData.AdcsEnrollmentPolicyWebServiceErrorMessage -f $errorMessage )
198+ ) -join ' ' )
197199 New-InvalidOperationException - Message $errorMessage
198200 }
199201} # function Set-TargetResource
@@ -383,18 +385,18 @@ function Test-AdcsEnrollmentPolicyWebServiceInstallState
383385 if ($null -eq $enrollmentPolicyWebServiceWebApp )
384386 {
385387 Write-Verbose - Message ( @ (
386- " $ ( $MyInvocation.MyCommand ) : "
387- $ ($script :localizedData.AdcsEnrollmentPolicyWebServiceInstallIsNotInstalledMessage -f $AuthenticationType , $KeyBasedRenewal )
388- ) -join ' ' )
388+ " $ ( $MyInvocation.MyCommand ) : "
389+ $ ($script :localizedData.AdcsEnrollmentPolicyWebServiceInstallIsNotInstalledMessage -f $AuthenticationType , $KeyBasedRenewal )
390+ ) -join ' ' )
389391
390392 return $false
391393 }
392394 else
393395 {
394396 Write-Verbose - Message ( @ (
395- " $ ( $MyInvocation.MyCommand ) : "
396- $ ($script :localizedData.AdcsEnrollmentPolicyWebServiceInstallIsInstalledMessage -f $AuthenticationType , $KeyBasedRenewal )
397- ) -join ' ' )
397+ " $ ( $MyInvocation.MyCommand ) : "
398+ $ ($script :localizedData.AdcsEnrollmentPolicyWebServiceInstallIsInstalledMessage -f $AuthenticationType , $KeyBasedRenewal )
399+ ) -join ' ' )
398400
399401 return $true
400402 }
0 commit comments