Export mailboxes to pst Exchange 2010

Hi Experts, trying to run New-MailboxExportRequest -Mailbox alias -FilePath "\\servername\share\user.pst but keep getting following error:

The server or share name specified in the path may be invalid, or the file could be locked.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : 665EF03A,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

Share is on Exchange server and is accessed using UNC. Exchange Trusted System, user running commands and System have full access to share and NTFS security. User also has Import-Export role assigned

3 Exchange 2010 servers in DAG running Exchange 2010 SP3 on 2008 R2 Datacenter

TIA
abhijitm00Asked:
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.

Will SzymkowskiSenior Solution ArchitectCommented:
New-MailboxExportRequest -Mailbox alias -FilePath "\\servername\share\user.pst

You are missing the ending quote " at the end after PST.

It should look like below.

New-MailboxExportRequest -Mailbox alias -FilePath "\\servername\share\user.pst"

Will.
0
abhijitm00Author Commented:
Thanks for replying Will, I have tried with and without quotes same error as above
0
AmitIT ArchitectCommented:
Just add everyone group and give full access and then run the same command.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

abhijitm00Author Commented:
Thanks Amit but I have Everyone group as well for both Share and Security.
0
Will SzymkowskiSenior Solution ArchitectCommented:
Also the share has to be an ACTUAL shared folder. It cannot simply be a directory that you have access to. You also need to make sure that you have proper rights as well to export the mailbox.

Will.
0
AmitIT ArchitectCommented:
Can run net share and post the result.
0
abhijitm00Author Commented:
Never mind figured it out. There were 2 IP addresses assigned to the NIC, used mapping by IP address and that fixed the issue. Thanks for your help. Will split the points for assisting
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
AmitIT ArchitectCommented:
Good you figured out, as that might be my next question to you. I thought to wait for net share result first. :)
0
abhijitm00Author Commented:
Modified DNS to IP to get to solution
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.

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.