Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Exchange 2010 Mailbox Export failing

Posted on 2013-11-06
4
1,805 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

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.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

856 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