-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
If msDS-deletedObjectLifetime is null it defaults to the same value as tombstoneLifetime, not to 60 as per the code in bold below.
In my case I have tombstoneLifetime = 180 and msDS-deletedObjectLifetime = Null and it's getting reported as 60 when it's in fact 180.
if ($null -eq $Output) {
[PSCustomObject] @{
'TombstoneLifeTime' = 60
'msDS-deletedObjectLifetime' = 60
}
} else {
if ($Output.tombstoneLifetime -and $Output.'msDS-deletedObjectLifetime') {
[PSCustomObject] @{
DistinguishedName = $Output.DistinguishedName
'TombstoneLifeTime' = $Output.tombstoneLifetime
'msDS-deletedObjectLifetime' = $Output.'msDS-deletedObjectLifetime'
}
} elseif ($Output.tombstoneLifetime) {
[PSCustomObject] @{
DistinguishedName = $Output.DistinguishedName
'TombstoneLifeTime' = $Output.tombstoneLifetime
**'msDS-deletedObjectLifetime' = 60**
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels