Import-Module ActiveDirectory $searchOU = “OU=Test,DC=ndsedv,DC=de” Get-ADGroup -Filter ‘GroupCategory -eq “Security” -or GroupCategory -eq “Distribution”‘ -SearchBase $searchOU | ForEach-Object{ $group = $_ Get-ADGroupMember -Identity $group -Recursive
Weiterlesen