Move database path Exchange 2010

Small Business Server 2011
Built In Exchange 2010

We had to install a clean SBS 2011 OS on a Server and start over- all data was copied from the previous (same hardware).  However, when I attempt to Move Mailbox Database Path in Exchange to what was their existing Mailbox Database, I get the following Failed message:

The .edb file path is not available.  There is already a file named 'C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database Folder\Mailbox Database.edb' in the file system on server
Parameter name: EdbFilePath

Any help for the appropriate process and order of dismounting the current database and moving to the backed up database file is appreciated.  Need to get mailbox data restored after a clean Windows load.
David RobertsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nick RhodeIT DirectorCommented:
Probably because you put the same database back its place.  Check the file path.  Is the old database there?
Here is a previously answered question covering this:

you will want to take note of the method used and other suggestions not marked as answer.
David RobertsAuthor Commented:
This article outline’s the steps to restore an exchange database in Exchange 2010

1. Create 2 folders:
•Database              –> D:\Recovery\Database
•Transaction Logs   –> D:\Recovery\Logs

2. Now restore the database which is to be recovered and the subsequent logs exactly to the above location

3. Now follow steps 1-7 mentioned in the article and make the database in a clean shutdown :

Exchange Database Recovery – Using eseutil commands:
4. Once the database is in clean shutdown state, rename the original database file to “RecoverDB.edb”.

NOTE: Don’t copy the logs since ESEUTIL /R replayed them into the EDB and the database does not require any more logs to make it clean shutdown.

5. Use the Exchange management Shell to create a recovery database.      

This example creates the Recovery Store “RecoverDB” on the server MSXGuru-Exch using the defined path for the database file and transaction logs folder.

New-MailboxDatabase -Recovery -Name RecoverDB -Server MSXGuru-Exch -EDBFilePath D:\Recovery\Database\RecoverDB.edb -LogFolderPath D:\Recovery\Logs

Important: If you have EMC Console open, you will need to restart it to see the newly created Recovery mailbox Store “RecoverDB“ under the Organization Configuration–> Mailbox –>Database Management and its state will be dismounted.

6. Now Right click on the newly created recovery Store and mount it.

7. Now open Shell and type the command as shown:

Get-MailboxStatistics -Database RecoverDB

This will show the list of mailboxes in that database.

8. This is the cmdlet to recover entire mailbox content for the mailbox UserA

Restore-Mailbox -Identity UserA -RecoveryDatabase RecoverDB

This will take time depending on the size of the mailbox.

9. This is the cmdlet to restore UserB mailbox content into UserA mailbox under the RecoverTest folder.

Restore-Mailbox –Identity UserA –RecoveryDatabase RecoverDB –RecoveryMailbox UserB –TargetFolder RecoverTest

10. This is the cmdlet to restore all mailboxes in the database mbx1 which are also present in the RecoverDB database. For every mailbox it will ask you to confirm the action, we do have an option “Yes to All”

Get-Mailbox –Database mbx1 | Restore-Mailbox –RecoveryDatabase RecoverDB


This is what I entered in Exchange Management Shell for Step 5 as it applies to this environment:

New-MailboxDatabase -Recovery -Name RecoverDB -Server MSXGuru-Exch -EDBFilePath C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\TR Hyundai Mailbox Database\recoverdb.edb -LogFolderPath C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\TR Hyundai Mailbox Database

I get the following:

A positional parameter cannot be found that accepts argument 'Files\Microsoft\Exchange'.
+ CategoryInfo : Invalid Argument : (:) [New-mailboxdatabase], ParameterBindingException
+FullyQualifiedErrorID : PositionalParameterNotFound, New-MailboxDatabase
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

please wrap the path in quotes...

New-MailboxDatabase -Recovery -Name RecoverDB -Server MSXGuru-Exch -EDBFilePath "C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\TR Hyundai Mailbox Database\recoverdb.edb" -LogFolderPath "C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\TR Hyundai Mailbox Database"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David RobertsAuthor Commented:
Actually it wasn't the quotes - that particular command did not like spaces in between words in a file path location.

Didn't have a problem with spaces in earlier commands in Exchange Management Shell - thanks Microsoft.
David RobertsAuthor Commented:
7. Now open Shell and type the command as shown:
 Get-MailboxStatistics -Database RecoverDB

This will show the list of mailboxes in that database.

When I type in the cmd, instead of displaying a list of mailboxes in that database, shell just goes right back to the following:

C:\Windows\system32>get-mailboxstatistics -database recoverdb

As if its looking for me to enter another cmd...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.