How to Backup DLs in exchange server
From AD we have number of options to make backup, I am looking a specific way out to backup DLs in exchange 2010 environment. Please sugge
April 21st, 2015 1:15am

Hi,

You can export all distribution groups and their members to a .csv file for backup, using the cmdlet below.

$groupmembers = foreach ($group in Get-DistributionGroup) { get-distributiongroupmember $group | select Name,@{n='DistributionGroupName';e={$group.Name}} }
$groupmembers | Export-Csv C:\DGgroupmembers.csv NoTypeInformation

For your reference:

https://social.technet.microsoft.com/Forums/en-US/db69aa64-e099-4adc-a21f-727e87356ec6/list-all-distribution-groups-and-their-members?forum=exchangesvrgeneral

Hope this can be helpful to you.

Best regards,

Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2015 1:29am

Ok This works well however the code do not displays DLs with no members (empty DLs) .Please suggest.
June 10th, 2015 7:33am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics