Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Exchange 2010 Mailbox Export failing

Posted on 2013-11-06
4
Medium Priority
?
1,942 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 1000 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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
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…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Suggested Courses

916 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