Get-DistributionGroup -ResultSize unlimited | where {($_.DisplayName -notlike 'SDL_*') -or ($_.managedby -notcontains "*Organization Management*")} | ft displayname, managedby
I'm running the above powershell. I've used -notcontains, notequal, notlike and I'm still having distribution lists returned that contain organization management as an owner. What am I missing? I feel like Exchange for some reason added the role Organization management as an owner and that isn't an object the conditions are tracking for.