So how will we do this .. All we need is legacyDN for all users for whom we need to perform exmerge.
How to get it ? One way is to write a script and the other way is csvde
I will explain the second one and if you need the first way then mail me ..
csvde -s
The output file exmergedata.txt will have the contents that you need. Open the file is excel and get the desired result. The input file only needs the legacyexchangeDN value.
Step 1 : Create a input file e.g exmergeusers.txt and add all legacyexhangeDN values one per line.
Step 2 : Open exmerge.ini file from the exmerge folder and make the changes to the following sections -
MergeAction
Should be set to the default (which is MergeAction=0) this means that EXMERGE is looking to export only.
SourceServerName
This value needs to the set to the name of the Exchange server that we are going to extracting data from - for example SourceServerName=MyServer
DataDirectoryName
The is the directory where you wish for the PST files to be placed - be mindful that the location needs to have enough space to accomodate the exported files.
FileContainingListOfMailboxes
The FileContainingListOfMailboxes value should be teh patch where you save exmergeusers.txt
Step 3 : Create a batch file e.g exmergestart.bat. Contents of the file are :
C:
CD c:\program files\exchsrvr\bin\
EXMERGE -F EXMERGE.INI -B
Now you are ready to trigger the batch file also it can be added to a schedule task. Remember to do this is off production hours.