If we need to export all the Distribution Group and all the members of it to a CSV file, we can use a script from TechNet Galery. This script displays all the Distribution Group with its members in Exchange Mangement Shell. It also supports DYNAMIC Distribution group as well.
Script Supports – Exchange 2007,2010,2013 & Office365. Download the script from TechNet Galery