Exchange 2007 export mailbox so domain user account can be deleted

I have an end user whose account on our domain controller (Windows 2009 server) seems to be corrupt.  We have a different dedicated Windows 2008 server (64 bit) that is running Exchange 2007.  I want to export or backup that end user's mailbox to a .pst file.  Once the user account is deleted from the domain controller, I intend to recreate his account with the same credentials, go to the Exchange server and recreate his mailbox there, then import the .pst file.

Now, if I just knew how.

Please advise.
baleman2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Hilal1924Commented:
Hi, Please use this command to export the mailbox to a pst
Export-Mailbox –Identity <mailboxUser> -PSTFolderPath <pathToSavePST>
Then you can import the mailbox with this command
Import-Mailbox -Identity <mailboxUser> -PSTFolderPath <PSTFileLocation>
Hilal
marine7275Commented:
Hilal1924Commented:
Export-Mailbox –Identity <mailboxUser> -PSTFolderPath <pathToSavePST>
For Example: Export-Mailbox -Identity "Baleman" -PSTFolderPath D:\PST\
Import-Mailbox -Identity <mailboxUser> -PSTFolderPath <PSTFileLocation>
 For Example: Import-Mailbox -Identity "Baleman" -PSTFolderPath D:\PST\
Hope that makes it clear
Hilal
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.

Hilal1924Commented:
.ExMerge is a depreciated Utility for usage in Exchange. Export-Mailbox and Import-Mailbox Cmdlets are replacement for that.  As a matter of fact EXMerge is no more available in Exchange 2010.
Hilal
marine7275Commented:
good thing he is using 2007.
baleman2Author Commented:
Have gotten busy - will try commands tonight.
Mahmoud SabrySenior IT Systems EngineerCommented:
why u need to export mailbox and import it a gain, if the user is currupted and his mailbox is healthy in the exchange database, if you deleted the user account from the active directory, the user mailbox will be disconnected from the database and resides in the disconnected mailbox container under recipient configuration in the exchange management console

when you create the user next time, go to disconnected mailboxes, right click the old user mailbox, and choose connect, go with the wizard and associate this mailbox with the new user

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
baleman2Author Commented:
To msabry06:
With over 400 users in our domain, this situation comes up very infrequently.  Your solution would be the easiest.  Once I delete the account from active directory, I intend to recreate with the exact same credentials - username, password, etc.  Does this pose any problems with associating the old mailbox with the newly created user?
Mahmoud SabrySenior IT Systems EngineerCommented:
no at all

it works normally,and will not make any problems

and if you disable user account from active directory, and u can't see it in the disconnected mailboxes, you can use this command so that it appears in the disconnected mailboxses

Get-MailboxDatabase | Clean-MailboxDatabase

and also, you can test this, create new user xxx, mail enable the new user xxx, then delete the user from active directory, create new user yyy go to disconnected mailboxes, and reconnect the xxx mailbox to yyy user, if u can't see the user mailbox xxx in the disconnected mailboxes, run the command Get-MailboxDatabase | Clean-MailboxDatabase in command shell
baleman2Author Commented:
Thanks to all.  Since I found msabry's comments to be more useful (although the other solution would have worked) in my situation, I used that solution and it worked perfectly.
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
Exchange

From novice to tech pro — start learning today.