2

In Office 365 Exchange how does one obtain a list of existing dynamic distribution groups? Is power shell required?

2 Answers 2

2

You can see your groups via web UI: Exchange admin center -> recipients -> groups Then you need to search -> advanced search provide recipient types "Dynamic distribution groups" and OK it

enter image description here

Powershell is not required, but is a good option: You need to connect to Exchange Online session as per Microsoft Technet article.

Supply your Office365 admin user credentials: $UserCredential = Get-Credential

Then create a session(one line): $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection

And finally Import-PSSession $Session

When connected issue Get-DynamicDistributionGroup which will give you the list.

6
  • Using powershell, I'm able to get a list using Get-DistributionGroup but not using Get-DynamicDistributionGroup, as that command does not exist when I try to use it.
    – leeand00
    Jul 15, 2016 at 13:01
  • 1
    Make sure there is no error when you connect to office 365 session. I think you might miss some cmdlets if you have PowerShell execution policy set too restricted. Jul 15, 2016 at 13:05
  • I ran Set-ExecutionPolicy -ExecutionPolicy ByPass and then tried your powershell suggestion again, but I still don't end up with the Get-DynamicDistributionGroup I do however have a Set-DynamicDistributionGroup, I don't really want to use it though. I also received something about setting an AllowClobber parameter when importing them, and then a bunch of commands that I assume are local and that importing them would use a proxy to call it remotely instead of the local ones.
    – leeand00
    Jul 15, 2016 at 15:16
  • Is it possible that the Get-DynamicDistributionGroup has been deprecated by Get-DistributionGroup?
    – leeand00
    Jul 15, 2016 at 15:20
  • 1
    Okay, it seems you already have Exchange powershell module on the machine where you run this session. AllowClobber would allow to merge modules, if I'm not mistaken. I would suggest you follow the article's section "What do you need to know before you begin?" to avoid any confusion. Dynamic Distribution Groups wouldn't deprecate regular DGs. Jul 15, 2016 at 15:22
0

You can use Exchange admin center to view all available dynamic distribution group. else you can use below PowerShell commands.

$Credential=Get-Credential -Credential $null 
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirection  
Import-PSSession $Session -AllowClobber
Get-DynamicDistributionGroup

viewing members of a Dynamic Distribution Group are not feasible in the Office 365 Admin Portal.PowerShell is the only way to view members.

https://gallery.technet.microsoft.com/Export-Office-365-Dynamic-7f66e229

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .