title: Getting distribution group details with PowerShell
body: <p>I need to recreate hundreds of distribution groups in a new (O365) environment.  I’ve no access to the source system other than to work with their techs to provide them scripts that they’ll run for me.</p>
  
  <p>I wrote a script to spit out the names of all the lists that my users are members of (security and distribution).  I’d like to write another to cycle through each distribution group and provide me with details of that group.  I don’t see how to do that.</p>
  
  <p>I see that Set-DistributionGroup will happily let me set the AcceptMessagesOnlyFromDLMembers (and a million other fields) but I don’t see that Get_DistributionGroup will output those values for me.  How do I do this to ensure I’m not recreating an open group for HR that should have been MemberJoinRestriction enabled (for example)?</p>
  
  <p>Thanks in advance.</p>