Hello team !!
I've been trying to get a report of users that don't belong to a certain Distribution List in Office 365, something like this , but just the opposite, no menbers instead of members:
Get-DistributionGroupMember -ResultSize unlimited grupo1@dominio.com | select DisplayName, PrimarySmtpAddress | Export-Csv C:\grupo1.csv
-NoTypeInformation
Any ideas ??
thanks in advance
germain
I think you'd do better to get the distinguished name of the DL and then check the memberOf property of each user to see if that distinguished name is present.
--- Rich Matheisen MCSE&I, Exchange Ex-MVP (16 years)
Hi Rich
I dont think Office365 has memberOf attribute think that is only an AD attriubte.
If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.