We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecd814b + 00b2649 commit 7ec4e3fCopy full SHA for 7ec4e3f
Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardRetentionPolicy.ps1
@@ -19,7 +19,7 @@ function Invoke-CIPPStandardRetentionPolicyTag {
19
$StateIsCorrect = ($CurrentState.Name -eq $PolicyName) -and
20
($CurrentState.RetentionEnabled -eq $true) -and
21
($CurrentState.RetentionAction -eq 'PermanentlyDelete') -and
22
- ($CurrentState.AgeLimitForRetention -eq $Settings.AgeLimitForRetention) -and
+ ($CurrentState.AgeLimitForRetention -eq ([timespan]::FromDays($Settings.AgeLimitForRetention))) -and
23
($CurrentState.Type -eq 'DeletedItems') -and
24
($PolicyState.RetentionPolicyTagLinks -contains $PolicyName)
25
0 commit comments