Tuesday, June 19, 2007

Export All DL's in a Domain

The following command can be used to export all Distribution List's.

csvde -f c:\DistributionLists.csv -s GCNAME -d ",dc=rishi,dc=com" -p subtree -l name,managedBy -r "((&(objectCategory=Group)(objectClass=Group)((groupType=8)(groupType=4)(groupType=2)))(objectCategory=ms-Exch-Dynamic-Distribution-List)(objectClass=msExchDynamicDistributionList))"

If you remove -l it will give the dump of all the attributes.

No comments: