vinden
asked on
Retrieving CN from AD/Exchange
Hi,
Next week we are migrating from Small Business Server 2003 to Essential Business Server. Therefor we have to move from exchange 2003 to 2007.
I'm trying to automate Exmerge so that I have a backup PST file of our 60 mailboxes in case things go wrong. However to automate Exmerge I need to put the below text in a file called Mailboxes.txt for each user :
/O=FIRST ORGANIZATION /OU=FIRST ADMINISTRATIVE GROUP /CN=RECIPIENTS /CN=VINCENT
The problem is I don't know what the exchange username (DN) is for each user (vincent in the above example). I'd like to list all these names for every user in 1 operation. So far I tried LDP.exe and ADSI edit but with no luck.
Next week we are migrating from Small Business Server 2003 to Essential Business Server. Therefor we have to move from exchange 2003 to 2007.
I'm trying to automate Exmerge so that I have a backup PST file of our 60 mailboxes in case things go wrong. However to automate Exmerge I need to put the below text in a file called Mailboxes.txt for each user :
/O=FIRST ORGANIZATION /OU=FIRST ADMINISTRATIVE GROUP /CN=RECIPIENTS /CN=VINCENT
The problem is I don't know what the exchange username (DN) is for each user (vincent in the above example). I'd like to list all these names for every user in 1 operation. So far I tried LDP.exe and ADSI edit but with no luck.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
one last thing though :
Csvde now gives me lots of data per user. It gives me multiple CN's per user for instance. I'm still unsure which CN corresponds to the CN that I need to automate mailboxes with exmerge ?
For some users what exmerge needs is firstname only, for others it's firstname.lastname or fistname lastname and so on.
Exmerge needs this in mailboxes.txt :
/O=FIRST ORGANIZATION /OU=FIRST ADMINISTRATIVE GROUP /CN=RECIPIENTS /CN=VINCENT
CSVDE gives me this for each user :
CN=Vincent mylastnamehere,CN=Users,DC