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
#################################################################################
# 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
#################################################################################
# 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>
#
#################################################################################
Installation Options
Owners
Package Details
Author(s)
- David Dean <david@sycho.net>
Dependencies
This script has no dependencies.
FileList
- Get-NestedDLMembers.nuspec
- Get-NestedDLMembers.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.0 (current version) | 162 | 3/18/2020 |