Exchange 2010 – Search-Mailbox error

In Exchange, when running a the search-mailbox command and you have a large user base, you might encounter the following error:

Sending data to a remote command failed with the following error message: The total data received from the remote clien
t exceeded allowed maximum. Allowed maximum is 524288000. For more information, see the about_Remote_Troubleshooting Help topic.+ CategoryInfo : OperationStopped: (System.Manageme…pressionSyncJob:PSInvokeExpressionSyncJob) [], PSRemotingTransportException
+ FullyQualifiedErrorId : JobFailure

The error takes a while to show but unfortunately it has reached a default limit which cannot be changed.

Don’t worry, there are some workarounds which can get you through this, here are some of them:

  • You can add this into a foreach statement to loop through each mailbox at a time
  • You could run the command against each mailbox server, however if you have hundreds of servers it might not be an option.
  • You can lastly create a new PSSessionConfiguration on your remote server where you running this, however you might also hit a memory quota error.
  • Changing your Search Query by shortening the date range.

To expand on the above, you can use the following command below to create a foreach statement to loop though the mailboxes:

ForEach Statement:

vs the standard command to search the mailbox:

Using an Individual mailbox server:

Creating a new PSSessionConfiguration, this includes 3 commands:

If you still getting errors then try and change your search, shortening the date range.

The ForEach Script is located on TechNet Gallery using this link.

Hope it helps.

Views All Time
Views All Time
Views Today
Views Today
Advertisements

Leave a Reply

Your email address will not be published. Required fields are marked *