Export-mailbox Error Exchange 2007

Probably something really simple, getting the following error when trying to copy one mailbox to a folder in another.

Error occurred in the step: Creating target folder in the target mailbox. An unknown error has occurred., error code: -2147221233
AtkinsonHDAsked:
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.

MegaNuk3Commented:
Does the account you are using have rights to the target mailbox? Try opening the target mailbox with that account through outlook. Also check and make sure the target folder does not already exist.
0

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
AtkinsonHDAuthor Commented:
I am using lets say account "admin" to copy "user1"s mailbox in to a folder in "user2"s

So i am logged on as "admin" and running the following script in Exhange 2007 Shell.

Export-Mailbox -Identity "user1" -TargetMailbox "user2" -TargetFolder "somefolder"
0
AtkinsonHDAuthor Commented:
Sorted it gave "admin" rights to both accounts("user1" & "user2"), and it worked like a charm.
0
MegaNuk3Commented:
Thanks for the points
0
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.