One of the most common requests I get from users is: "Who is in this Query-based Distribution Group?"
Most often the users who should be in the group aren't receiving messages as they should. So I wrote a quick script that pulls the members of a Dynamic Distribution Group and generates a nicely formatted HTML report that the user can easily read.
Grab the script from my Google Drive here
To run the script, fire up the Exchange Management Shell (EMS).
Change to the directory where you saved the script by running:
cd C:\Scripts
**Note** Change C:\Scripts to reflect your directory
Then, run:
Get-DynamicGroupMembers.ps1
The Script will prompt you to enter a Distro Group name
**Note** You do not need quotes around the name
Next, it will prompt you to provide a file name, such as DDLReport.htm
**Note** You will need to specify .htm to the file name.
The script will then generate the report and save the HTML file in the location of the .ps1 file eg. C:\Scripts
Now you'll have a nice and pretty report to hand off to the user.
No comments:
Post a Comment