Exchange Online - Get Distribution Lists With Owners
I had a requirement to generate a list of all distribution lists with their owners. In the Exchange portal on Office 365 I could export a list but there was no option to include the owners of the list.
I managed to get the information I needed using Powershell. Having connected Powershell to Exchange Online I ran the following command;
Get-DistributionGroup -Filter * | Select Name, ManagedBy | Export-CSV C:\export.csv -NoTypeInformation
No comments:
Post a Comment