Get-NestedDLMembers

1.0

Have a distribution list with a bunch of nested groups?  Want to get a flattened member list? This is what you need.
#################################################################################
#                         Get-NestedDLMembers.ps1
#
# This will expand and flatten a Distribution List with nested groups into a
# single global array $Members. By default
Have a distribution list with a bunch of nested groups?  Want to get a flattened member list? This is what you need.
#################################################################################
#                         Get-NestedDLMembers.ps1
#
# This will expand and flatten a Distribution List with nested groups into a
# single global array $Members. By default it will only output the
# PrimarySmtpAddress but additional properies can be added with the -properties
# switch (Note that the properties must be quoted and comma separated. By default
# it pulls all RecipientTypes which can be narrowed to a single RecipientType
# with the -UserType switch (UserMailbox, MailUser or MailContact).
#
# Syntax:
#    Get-NestedDLMembers.ps1 -DLName <DistributionList> -Properties
#    "CustomAttribute1","CustomAttribute2","RecipientType"
#
# Note that member deduplication is done by default.
#
#
#
#################################################################################
#
# Created by David Dean <david@sycho.net>
#
#################################################################################
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Get-NestedDLMembers

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • David Dean <david@sycho.net>

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0 (current version) 162 3/18/2020