Solved

Exchange 2010 Mailbox Export failing

Posted on 2013-11-06
4
1,821 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
[X]
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
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

726 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