You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
The text was updated successfully, but these errors were encountered:
2a-h
changed the title
test for canary object
test for temporary canary object always evalutes true when running in mode 2
Aug 31, 2022
2a-h
changed the title
test for temporary canary object always evalutes true when running in mode 2
test for temporary canary object always evaluates true when running in mode 2
Aug 31, 2022
2a-h
changed the title
test for temporary canary object always evaluates true when running in mode 2
test for temporary canary object always evaluates to true when running in mode 2
Aug 31, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
when running the script in mode 2, the statement on line 785 will always evaluate to
$true
because both$objectOnTargetDCPwdLastSet
and$objectOnSourceOrgRWDCPwdLastSet
are uninitialized in this mode and are therefore both equal to$null
https://github.com/microsoft/New-KrbtgtKeys.ps1/blob/aaa1b322f3dd4478f733a01b37dd221c8ff1f8c0/New-KrbtgtKeys.ps1#L785
the statement should evaluate to
$false
when$targetObjectToCheck
is$null
because it would mean that, for example,Get-ADObject
on lines 755 or 758 failed for some reasonhttps://github.com/microsoft/New-KrbtgtKeys.ps1/blob/aaa1b322f3dd4478f733a01b37dd221c8ff1f8c0/New-KrbtgtKeys.ps1#L755
The text was updated successfully, but these errors were encountered: