master
lub 1 year ago
parent 57eebd6429
commit 8336f9bddd

@ -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

Loading…
Cancel
Save