How to Create a Report of Distribution Lists and their Owners

%3CLINGO-SUB%20id%3D%22lingo-sub-2651528%22%20slang%3D%22en-US%22%3EHow%20to%20Create%20a%20Report%20of%20Distribution%20Lists%20and%20their%20Owners%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2651528%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20post%2C%20we%20explore%20how%20to%20use%20PowerShell%20to%20create%20a%20report%20about%20distribution%20lists%20and%20their%20owners.%20The%20script%20is%20quick%20and%20dirty%2C%20but%20it%20works%2C%20and%20the%20code%20will%20run%20on%20both%20Exchange%20Online%20and%20Exchange%20Server%20and%20generates%20both%20HTML%20and%20CSV%20outputs.%20We%20also%20look%20at%20whether%20it's%20possible%20to%20speed%20things%20up%20by%20using%20Microsoft%20Graph%20API%20calls.%20As%20it%20turns%20out%2C%20because%20we're%20interested%20in%20owner%20information%2C%20it's%20no%20faster%20to%20retrieve%20distribution%20lists%20using%20the%20Graph.%20However%2C%20as%20shown%20in%20a%20second%20script%2C%20the%20Graph%20is%20great%20at%20retrieving%20membership%20information.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2021%2F08%2F16%2Fcreate-report-exchange-distribution-lists%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2021%2F08%2F16%2Fcreate-report-exchange-distribution-lists%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2651528%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

 

In this post, we explore how to use PowerShell to create a report about distribution lists and their owners. The script is quick and dirty, but it works, and the code will run on both Exchange Online and Exchange Server and generates both HTML and CSV outputs. We also look at whether it's possible to speed things up by using Microsoft Graph API calls. As it turns out, because we're interested in owner information, it's no faster to retrieve distribution lists using the Graph. However, as shown in a second script, the Graph is great at retrieving membership information.

https://office365itpros.com/2021/08/16/create-report-exchange-distribution-lists/

0 Replies