Solved

Exchange 2010 Mailbox Export failing

Posted on 2013-11-06
4
1,770 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)
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks that has worked a treat.
0

Featured Post

Too many email signature changes to deal with?

Are you constantly being asked to update your organization's email signatures? Do they take up too much of your time? Wouldn't you love to be able to manage all signatures from one central location, easily design them and deploy them quickly to users. Well, you can!

Join & Write a Comment

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
A procedure for exporting installed hotfix details of remote computers using powershell
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video discusses moving either the default database or any database to a new volume.

772 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

12 Experts available now in Live!

Get 1:1 Help Now