Chat with us, powered by LiveChat

Blog

Back

Get a list of all Distribution Groups Created/Modified in the past 30 Days in Office 365

28 Aug 2012 by Emma Robinson

I came across this great question in the Office 365 Community forums the other day and thought I’d write a blog post up for the next person looking to get a list of all Distribution Lists created or modified in the past 30 days.
We have reports similar to this into Cogmotive Reports, our Office 365 Reporting package.
Firstly, connect to Office 365 using Powershell.
Then you’ll need to run of the following cmdlets:
To get Distribution Lists created in the past 30 days:
Get-DistributionGroup | Where{$_.WhenCreated -gt ((Get-Date).AddMonths(-1))}
To get Distribution Lists modified in the past 30 days:
Get-DistributionGroup | Where{$_.WhenChanged -gt ((Get-Date).AddMonths(-1))}