Office 365 Dynamic Distribution Groups for Office

19 Dec

Since moving to Office 365, one of the features I was missing was the ability to create Dynamic distribution groups based on the users ‘Office’ setting.

From the GUI you only get a fairly limited set of options, State, Company and Department.

However, using PowerShell you can achieve this very easily

New-DynamicDistributionGroup -Name 'Head Office Staff' -RecipientFilter {Office -eq "Head Office"}