Using a Batch to Exmerge a Recovery Storage Group - Mailbox from Exchange 2003

I am working on a project to recover 30 individual days of email from a clients mailbox. This requires me to restore 30 days worth of backups to the Recovery Storage Group(RSG) on a specific server. I have quickly grown tired of selecting the name from the giant Exmerge list and worked out how to use a batch file to run Exmerge against the RSG.

Part 1: Exmerge.ini

[Exmerge]
MergeAction=0
RestoreDB=1
FileContainingListOfDatabases=database.txt
SourceServerName=<Exchange Server Name>
FileContainingListOfMailboxes=Mailboxes.txt
CopyDeletedItemsFromDumpster=1
DataDirectoryName=D:\EXMERGEDATA
LogFileName=ExMerge.log

Part 2: database.txt

CN=SG1-PRIV1,CN=RECOVERY STORAGE GROUP

Part 3: mailboxes.txt

/o=<Organization Name>/ou=First Administrative Group/cn=Recipients/cn=<MailboxAlias>
/o=<Organization Name>/ou=First Administrative Group/cn=Recipients/cn=<MailboxAlias2>

Part 4: the Batch file (exportMbx.bat)

exmerge.exe -b -f exmerge.ini

I've now put a shortcut to the bat file on my desktop and double-click it after the restore completes. If I could only find a script that would then dismount the database, mark it for overwrite and start a new restore from the server, I'd be done! Unfortunately, I've been told by Microsoft you can't script against the RSG, so still got a bunch of clicks for each day.

Back to work...

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <blockquote> <center> <hr> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <drupal6>, <html>, <java>, <javascript>, <php>, <posh>.

More information about formatting options