Export Office 365 Dynamic Distribution Group Members to CSV using PowerShell

Exports Office 365 Dynamic Distribution Groups members to CSV using PowerShell. The exported report will include Display Name, Primary SMTP Address, Alias, Manager(ManagedBy), Group Members Count, Member Type, Count By Members Type.

5 Star
195 times
Add to favorites
Office 365
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • MFA
    2 Posts | Last post Fri 5:32 PM
    • I can't get the -MFA to work.  It says: A parameter cannot be found that matches parameter name 'mfa'.
    • Hi,
      The script has been updated. You can download the updated script to work with MFA.
  • Exchange 2016 on-pre
    3 Posts | Last post April 04, 2019
    • does this script work for Exchange 2016 on-premise?  Also if a group has nested groups does the member only count immediate group members or include nested group members?
    • Hi Chris,
      This script works for Exchange Online, and it lists immediate group members alone. If you need a script to include nested group members in Exchange online, let us know.
    • Yes, please.  I need a script to list all members including nested group members with all type of users. But at the moment I'm in need a script for Exchange on premise.  Is there one as you know?