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:
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
This website uses cookies.
View Comments