yes we have a lot of distibution groups and i do not want to have to list them all. i was wondering if i could just exclude the group type distribution.
the one with the following code:
$groupNamesToSkip = @("Group1", "Group2", "Group3*") # TODO: modify me
function SkipGroup($patterns, $sAMAccountName)
{
foreach ($pattern in $patterns)
{
if ($sAMAccountName -like $pattern)
{
return $True
}
}