This will give you all Distribution Groups on the server. If you want to only get one DG, use -Identity *DG NAME* on the first . . .
I have a pretty large virtual environment at work to the tune of 1600 VMs, 19 hosts, 5 clusters, 46 networks, and 67 datastores. In . . .