If you have ever worked on Dynamic Distribution Lists (aka Dynamic Distribution Groups) in a hosted Exchange environment like Office 365, you will know that there is no method of listing the users emails in that distribution group, inside the Exchange web console. In the video below we explain:
- What Dynamic Distribution Groups are
- How to create a Dynamic Distribution List
- How to list the emails in a Dynamic Distribution List
- How Office365 interacts with Azure Active Directory
How to list the emails in a Dynamic Distribution List
Open a POWER SHELL as an administrator then enter these commands pressing ENTER after each one:
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking
$MyQuery = Get-DynamicDistributionGroup "< YOUR DDG>"
Get-Recipient -RecipientPreviewFilter $MyQuery.RecipientFilter -OrganizationalUnit $FTE.RecipientContainer
2 Comments
SOLVED: VIDEO: Easy PowerShell to List The Email Addresses in a Dynamic Distribution List From Office365 – Up & Running Technologies, Tech How To's · April 14, 2020 at 2:37 pm
[…] This is the “How Can I See the User/Member/Email addresses in a Dynamic Distribution Group” segment from our larger explanation of what Dynamic Distribution Lists are in Office 365 Hosted Exchange, How to Create and … […]
SOLVED: VIDEO: Easy PowerShell to List The Email Addresses in a Dynamic Distribution List in Office365 – Up & Running Technologies, Tech How To's · April 14, 2020 at 2:36 pm
[…] This is the “How Can I See the User/Member/Email addresses in a Dynamic Distribution Group” segment from our larger explanation of what Dynamic Distribution Lists are in Office 365 Hosted Exchange, How to Create and … […]