@ -83,7 +83,7 @@ function Get-BADPrincipalGroupMembership {
)
process {
write-host $ADObject
Write-Host $ADObject
$server = $ADObject.DistinguishedName.Split(',DC=')[-2,-1] -join '.'
$ADObject | Get-ADPrincipalGroupMembership -Server $server