I have been given the task of restoring emails for an entire organization of about 75 users from the past three years so that we can archive them and reference them when needed for FOIA requests and the like.
How I planned to achieve this was by restoring the entire Exchange database from each month's end backup to a recovery storage group, and then moving the relevant mailboxes from that storage group into a folder (one folder for each month) in a mailbox on the live server that was created specifically for this purpose.
So in other words, I would have a live mailbox called EmailArchive with folders for each month such as 12-14, 11-14 and so on.
Within those folders would be individual folders labeled after each user such as "Recovered Data - John Doe - the date and time it was recovered" such as Exchange labels each folder when it is recovered.
Now that in and of itself is not an issue as I can easily accomplish this through the Microsoft Exchange Troubleshooting Assistant in the Management Console.
However, the issue is that I need to recover only the emails for each user that are from that month.
And when I set the start and end dates under the advanced options of the Merge Options, it will always error out because for some reason, the command that should be "-startdate" and "-enddate" get switched to "-starttime" and "-endtime" when you look at the command that it puts out in the error details.
I could simply put in Restore-Mailbox "Email Archive" -RSGDatabase "Recovery Storage Group\Mailbox Database" -StartDate "12/01/14" -EndDate "01/01/15" -RSGMailbox "John Doe" -TargetFolder "12-14" in the command shell but I need to do this for each of the 75 users for 36 months worth of backups.
So my question is, is there a way to get around the issue where the wrong commands are being used when I do the recovery through the management console?
If not, is there a way I could put together a script or batch file that would take the above command and run it for each mailbox that needs to be restored in this way?
Keep in mind that I am not all that well versed in powershell scripting, though I am not overly intimidated by it.
I've been googling for a solution to this for days and have found pretty much nothing so any help in the matter is very much appreciated.