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

Who is Participating?

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

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"

abhijitm00Author Commented:
Thanks for replying Will, I have tried with and without quotes same error as above
AmitIT ArchitectCommented:
Just add everyone group and give full access and then run the same command.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

abhijitm00Author Commented:
Thanks Amit but I have Everyone group as well for both Share and Security.
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.

AmitIT ArchitectCommented:
Can run net share and post the result.
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

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. :)
abhijitm00Author Commented:
Modified DNS to IP to get to solution
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.