Google
Search WWW Search msexchangetips.blogspot.com

Monday, August 28, 2006

Exchange: LDIFDE Export Members of Distribution List

Summary:

This article will go over how to export members of a distribution list using LDIFDE.

There is MS KB article: http://support.microsoft.com/?kbid=555365
How to export the members of a distribution group in Exchange 2000/2003 using LDIFDE
which provides a sample of an LDIFDE command to export the properties.

ldifde -f export.ldf -d "cn=\Partners,ou=users,dc=microsoft,dc=com" -l member -s DC01

However, when you run the command, you receive no entries found:

Connecting to "DC01"
Logging in as current user using SSPI
Exporting directory to file export.ldf
Searching for entries...
Writing out entries
No Entries found

Cause:

Remove the slash in "cn=\"

In order to exporting any property for this user, you need to get the full DN. In order to get the full DN. Perform the following steps.

1. Start, Run, Adsiedit.msc (Part of Windows Server Support Tools)
2. Expand your Domain. This should mimic your OU structure.
3. Expand through your OU tree until you locate your group.
4. Once you have located your group CN=Group Name, right click properties.
5. Locate the attribute DistinguisedName and double click.
6. Copy the entire string which should be in the following format:
CN=My Group Name,CN=Users,DC=corp,DC=domain,DC=net
7. Enter in the following LDIFDE command.


C:\Documents and Settings\user>ldifde -f exportgroup.ldf -s MYDC -d
"cn=my group,cn=users,dc=corp,dc=redcross,dc=net" -l "member"


Note: if you would like to get more information other than group membership here is an example command:

C:\Documents and Settings\user>ldifde -f exportgroup.ldf -s MYDC -d
"cn=my group,cn=users,dc=corp,dc=redcross,dc=net" -l "dn, givenname, department, member"




James Chong
MCSE M+, S+, MCTS, Security+
msexchangetips.blogspot.com


How useful was this article? Want to see a tip not listed? Please leave a comment.

11 Comments:

Anonymous Anonymous said...

its works fine, but my scenario is I am having one distribution group and it contains external contacts and I want to export all the contact name and email id in excel or text file.

9:19 PM  
Anonymous Anonymous said...

Hi

I am using LDIFDE to export user and group info in to a file and then do a csv convertion on that.

I have a problem in decoding the base64 encoded value. It is not able to decode the values properly. I tested my decoder wit h other apps it decodes the UTF-8 to Base64 encoded strin correctly. Is the encoding mechanism used in LDIF is UTF-8 base 64 or is it different?

5:51 PM  
Anonymous Anonymous said...

Nice post as for me. It would be great to read a bit more concerning that topic. Thanks for sharing this information.
Sexy Lady
Blonde escorts

5:46 AM  
Blogger Unknown said...

Still today, replica handbags is recognized for its high quality purse. At the factory level, if a purse does not meet the replica louis vuitton standards it is destroyed. replica handbags has been in business for an amazing 3 centuries and replica bags continues to be fore front in the hand bag industry.

6:47 PM  
Anonymous Anonymous said...

Not working at all.
"No entries found"

8:17 AM  
Blogger oakleyses said...

toms shoes, supra shoes, montre pas cher, ugg uk, juicy couture outlet, moncler, lancel, michael kors outlet online, ugg pas cher, michael kors handbags, barbour, doke & gabbana, michael kors outlet, coach outlet, louis vuitton uk, canada goose jackets, pandora charms, moncler, ugg,ugg australia,ugg italia, links of london uk, moncler jackets, hollister, juicy couture outlet, canada goose outlet, swarovski uk, pandora jewelry, canada goose pas cher, canada goose outlet, marc jacobs, moncler pas cher, thomas sabo uk, swarovski jewelry, karen millen uk, louis vuitton, moncler, moncler uk, sac louis vuitton, canada goose, moncler outlet, louis vuitton, canada goose, wedding dresses uk, ugg,uggs,uggs canada, canada goose uk, sac louis vuitton, moncler, replica watches, barbour jackets uk, bottes ugg pas cher, canada goose jackets

6:34 PM  
Blogger xumeiqing said...

151210meiqing
prada outlet
abercrombie & fitch
ugg boots on sale
uggs outlet
ugg outlet
canada goose outlet
michaek kors handbags
cheap uggs
canada goose outlet
vans shoes
louis vuitton
coach factory outlet
uggs boots
michael kors outlet online
marc jacobs
nike roshe run
toms
ray ban sunglasses outlet
ugg boots
cheap ugg boots
gucci handbags
north face uk
pandora jewelry
coach outlet online
mont blanc pens
lebron james shoes 2015
coach outlet
uggs on sale
ralph lauren outlet
canada goose jackets
swarovski jewelry
nike trainers
giuseppe zanotti sneakers
uggs outlet
christian louboutin outlet
polo ralph lauren
chanel handbags
uggs on sale
oakley sunglasses
louis vuitton outlet

6:15 PM  
Blogger chenlina said...

polo ralph lauren
coach factory outlet
air jordan 13
cheap oakley sunglasses
ray ban sunglasses
gucci outlet
fitflops
true religion shorts
mont blanc pens
cheap oakley sunglasses
polo ralph lauren
timberland outlet
tory burch sale
kobe bryant shoes
polo ralph lauren outlet
louis vuitton outlet
kate spade
christian louboutin outlet
cheap oakley sunglasses
michael kors outlet
timberland outlet
ray ban sunglasses
louis vuitton handbags
true religion jeans
replica watches
designer handbags
toms outlet
true religion
louboutin sale clearance
michael kors handbags
kate spade
abercrombie and fitch
oakley vault
supra sneakers
michael kors outlet
kate spade outlet
louis vuitton handbags
michael kors handbags
polo ralph lauren outlet
michael kors handbags
chenlina20160803

5:44 PM  
Blogger Unknown said...

zzzzz2018.7.14
adidas nmd runner
nike shoes for men
coach outlet
moncler outlet
christian louboutin shoes
ugg boots clearance
christian louboutin shoes
true religion outlet
louboutin shoes
christian louboutin shoes

8:58 PM  
Blogger ahmed said...

أن العقارب من الحشرات الزاحفة السامة وتعتبر من بين الحشرات الخطيرة، وخطر تلك الحشرة قد يترك تأثيره على الإنسان بصورة هائلة، فهو يقوم بلدغ الإنسان وإصابته في الوضع وقد تكون السبب في أكثرية الأوقات لوفاه ذلك الفرد ولذا فهي حشرة لا مفر من التداول السريع معها حتى نتفادى خطر تلك الحشرة .
شركة مكافحة النمل الابيض بالاحساء
شركة مكافحة حشرات بالاحساء
شركة رش مبيدات بالاحساء
ارخص شركة مكافحة حشرات

11:05 AM  
Blogger yanmaneee said...

supreme shirt
spongebob kyrie 5
air max 270
supreme clothing
curry 4
lebron 16 shoes
yeezy boost
adidas ultra boost
curry 4
converse outlet

12:42 AM  

Post a Comment

<< Home

xml:lang="en" lang="en"> MS Exchange Tips: Exchange: LDIFDE Export Members of Distribution List