Solved

Exchange 2010 Mailbox Export failing

Posted on 2013-11-06
4
1,781 Views
Last Modified: 2013-11-08
Hi All,

I am trying to do a mass export on all mailboxes but im getting an error and i cant see where it's going wrong. It's a Exch 2010 SP1 on a 2008 R2 box. I have already assigned role permissions and added the Exch Trust group on the designated folder location security permissions. My command as below:

Get-Mailbox -OrganizationalUnit "OU=Active,OU=Users,OU=London,DC=domain,DC=local" | New-MailboxExportRequest -FolderPath \\server\folder\$($i.Alias).pst

And the output i get as below:

A positional parameter cannot be found that accepts argument '\\server\folder\.pst'.
    + CategoryInfo          : InvalidArgument: (:) [New-MailboxExportRequest], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,New-MailboxExportRequest

Invoke-Command : Cannot write input as there are no more running pipelines
At C:\Users\master\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\server.domain.local\server.domain.lo
cal.psm1:28430 char:29
+             $scriptCmd = { & <<<<  $script:InvokeCommand `
    + CategoryInfo          : InvalidOperation: (:) [Invoke-Command], PSInvalidOperationException
    + FullyQualifiedErrorId : NoMoreInputWrite,Microsoft.PowerShell.Commands.InvokeCommandCommand

Obviously this is something to do with the location im trying to move the export to but im unsure why.

The below command for a single mailbox export works without issue:

New-MailboxExportRequest -Identity user -PSTFolderPath \\server\folder\user.pst

Any help is appreciated.
0
Comment
Question by:Justin-Rutherford
  • 2
  • 2
4 Comments
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 39627093
If you do a single mailbox export, does that work?
Are you sure on the version as well - I am sure new-mailboxexportrequest was new to SP2, so wouldn't exist in SP1.

Simon.
0
 

Author Comment

by:Justin-Rutherford
ID: 39627107
Single mailbox works but i have specified the exact location and name of the .pst as below:

New-MailboxExportRequest -Identity user -PSTFolderPath \\server\folder\user.pst


Exchange 2010 Version: 14.02.0342.003

I may be wrong on the service pack apologies.
0
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 250 total points
ID: 39629542
14.02 is SP2.

The problem is this bit: $($i.Alias) - it doesn't recognise the command and therefore you get the error you are seeing.

Try this script instead:
http://gallery.technet.microsoft.com/office/Export-Mailboxes-PST-in-29b10ed1

Simon.
0
 

Author Closing Comment

by:Justin-Rutherford
ID: 39633069
Thanks that has worked a treat.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now