diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f86056c9..88f376f8d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- SPTrustedRootAuthority + - Added `-Recurse` flag to `Get-ChildItem` when setting + certificate by Thumbprint. + ## [5.3.0] - 2022-11-15 ### Added @@ -262,8 +266,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added support for LogonTokenCacheExpirationWindow, WindowsTokenLifetime and FormsTokenLifetime settings - SPService - New resource - - SPSecurityTokenServiceConfig - - Added support for LogonTokenCacheExpirationWindow, WindowsTokenLifetime and FormsTokenLifetime settings +- SPSecurityTokenServiceConfig +- Added support for LogonTokenCacheExpirationWindow, WindowsTokenLifetime and FormsTokenLifetime settings - SPUsageDefinition - New resource - SPUserProfileProperty diff --git a/SharePointDsc/DSCResources/MSFT_SPTrustedRootAuthority/MSFT_SPTrustedRootAuthority.psm1 b/SharePointDsc/DSCResources/MSFT_SPTrustedRootAuthority/MSFT_SPTrustedRootAuthority.psm1 index ce59ab767..701534cb2 100644 --- a/SharePointDsc/DSCResources/MSFT_SPTrustedRootAuthority/MSFT_SPTrustedRootAuthority.psm1 +++ b/SharePointDsc/DSCResources/MSFT_SPTrustedRootAuthority/MSFT_SPTrustedRootAuthority.psm1 @@ -182,7 +182,7 @@ function Set-TargetResource else { Write-Verbose -Message "Importing certificate from CertificateThumbprint" - $cert = Get-ChildItem -Path "Cert:\LocalMachine\*$($params.CertificateThumbprint)" ` + $cert = Get-ChildItem -Path "Cert:\LocalMachine\*$($params.CertificateThumbprint)" -Recurse ` -ErrorAction SilentlyContinue | ` Sort-Object -Property PSParentPath -Descending | ` Select-Object -First 1 @@ -264,7 +264,7 @@ function Set-TargetResource else { Write-Verbose -Message "Importing certificate from CertificateThumbprint" - $cert = Get-ChildItem -Path "Cert:\LocalMachine\*$($params.CertificateThumbprint)" ` + $cert = Get-ChildItem -Path "Cert:\LocalMachine\*$($params.CertificateThumbprint)" -Recurse ` -ErrorAction SilentlyContinue | ` Sort-Object -Property PSParentPath -Descending | ` Select-Object -First 1