Export name and primary SMTP address of distribution groups per user

Exports the name and email address of each distribution group into a file ($path\username.csv) for each user in the array. We're trialing Front and I didn't want to manually collect or input all of the data, so I wrote a quick tool to get just the data I needed. Please let me know if you have any issues or if there's a better way to script this function.

Requires AD & Exchange modules

Source Code

This script has not been checked by Spiceworks. Please understand the risks before using it.