Across Forest - PAM Trust
Check if the current forest is a bastion forest
1) Enumerate trust properties
Get-ADTrust -Filter {(ForestTransitive -eq $True) -and (SIDFilteringQuarantined -eq $False)}2) Enumerate shadow security principals
Get-ADObject -SearchBase ("CN=Shadow Principal Configuration,CN=Services," + (Get-ADRootDSE).configurationNamingContext) | select Name,member,msDS-ShadowPrincipalSid | flCheck if the current forest is managed by a bastion forest
Get-ADTrust -Filter {(ForestTransitive -eq $True)}Linux
1) Enumerate trust properties
2) Enumerate shadow security principals
3) ForestTransitive must be true
4) Get the shadow security principals
Last updated