Export member of distribution list to csv

I have a distribution list which contain over 10000 members inside

If run the below command in powershell, there will be shown 1000 members only.

Get-DistributionGroupMember -identity "ABC DEF" | export-csv -NoTypeInformation -path.\ExportGroupMemberLists.csv -encoding utf8

Pls help, thanks.

August 25th, 2011 9:21am

Try:

-ResultSize Unlimited


  • Proposed as answer by MrWasabi1 Friday, August 26, 2011 2:28 AM
Free Windows Admin Tool Kit Click here and download it now
August 25th, 2011 9:30am

Try:

-ResultSize Unlimited


  • Proposed as answer by MrWasabi1 Friday, August 26, 2011 2:28 AM
August 25th, 2011 9:30am

Thanks Kazun. It's working.

Dear all,

I've the other question,

I've created ABC DEF distribution group in 123 domain, and added some users into this group, some users come from 123 domain, some users come from 789 domain.

If I run the below script

Get-DistributionGroupMember -identity "ABC DEF" -ResultSize Unlimited | export-csv -NoTypeInformation -path .\ExportGroupMemberLists.csv -encoding utf8

There can be found 123 domain users only from the csv file, I cannot find any 789 domain users.

Then I go to ADUC to check this distribution group, I can see 123 & 789 domain users inside.

Why? PLs help, many many thanks.!

 

Free Windows Admin Tool Kit Click here and download it now
August 30th, 2011 2:52am

Set-ADServerSettings -ViewEntireForest $true
Get-DistributionGroupMember -identity "ABC DEF" -ResultSize Unlimited | export-csv -NoTypeInformation -path .\ExportGroupMemberLists.csv -encoding utf8

  • Marked as answer by Timothy Shum Tuesday, August 30, 2011 6:56 AM
August 30th, 2011 6:46am

Set-ADServerSettings -ViewEntireForest $true
Get-DistributionGroupMember -identity "ABC DEF" -ResultSize Unlimited | export-csv -NoTypeInformation -path .\ExportGroupMemberLists.csv -encoding utf8

  • Marked as answer by Timothy Shum Tuesday, August 30, 2011 6:56 AM
Free Windows Admin Tool Kit Click here and download it now
August 30th, 2011 6:46am

Great, many many thanks, Kazun!
August 30th, 2011 6:56am

Hi All,

Alos i would like to know how about getting all the dl names in AD in org.

like kndof report kindo f things like exchange environmenet. 

loking for 

1: No of ou's

2: user list  upn name 

3: dl name 

Thanks

Muthu

Free Windows Admin Tool Kit Click here and download it now
August 6th, 2015 2:43am

Sorry this topic has been closed for years.  Please open a new topic.  We do not write custom scripts.

August 6th, 2015 4:23am

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

Other recent topics Other recent topics