@ECHO OFF
IF "%1" LEQ "0" ECHO Invalid parameter.&&GOTO :End
IF EXIST _Output.txt DEL _Output.txt
FOR /F "delims=" %%g IN ('DSQuery * -Filter "(&(ObjectClass=Group)(groupType=2))" -Limit 0') DO (
ECHO Quering: %%g
DSGET Group %%g -members >TmpMbrs.txt
FOR /F %%c IN ('TYPE TmpMbrs.txt ^|FIND "=" /C') DO (
IF %%c GTR %1 ECHO Group: %%g Members: %%c >>_Output.txt))
ECHO.&ECHO Script finished.
IF EXIST _Output.txt (
START "" Notepad.exe _Output.txt) ELSE (
ECHO No group with more than %1 members found.)
:End
DSQuery * -Filter "(&(ObjectClass=Group)(groupType=2))" -Limit 0
DSQuery * ForestRoot -Filter "(&(ObjectClass=Group)(groupType=2))" -Limit 0
Get-DistributionGroup | Get-DistributionGroupMembe
above command will give you the DL list in a csv file and then you can apply filters as required. (It needs to be executed from an exchange shell)
or you may want to try this -
http://community.spiceworks.com/scripts/show/1388-export-distribution-list-members