Skip to content

Commit

Permalink
Fix dsccommunity#702 - EffectiveTime is already a DateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Borgquite committed Feb 9, 2024
1 parent b89e4f0 commit bea7702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/DSCResources/MSFT_ADKDSKey/MSFT_ADKDSKey.psm1
Expand Up @@ -107,7 +107,7 @@ function Get-TargetResource
elseif ($kdsRootKey)
{
$targetResource['Ensure'] = 'Present'
$targetResource['EffectiveTime'] = ([DateTime]::Parse($kdsRootKey.EffectiveTime)).ToString()
$targetResource['EffectiveTime'] = $kdsRootKey.EffectiveTime.ToString()
$targetResource['CreationTime'] = $kdsRootKey.CreationTime
$targetResource['KeyId'] = $kdsRootKey.KeyId
$targetResource['DistinguishedName'] = 'CN={0},CN=Master Root Keys,CN=Group Key Distribution Service,CN=Services,CN=Configuration,{1}' -f
Expand Down

0 comments on commit bea7702

Please sign in to comment.