We help IT Professionals succeed at work.
Get Started

Remote client exceeded allowed maximum

Last Modified: 2014-05-03
I am running the following PowerShell command to merge outlook safe sender list for all users.

Get-Mailbox -ResultSize Unlimited | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains @{Add='corp@doamin1.com','admin@domain2.com'}

But receiving the following error:

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

Can you please advise.

Reference Link:

On this note, if I run the above for few users then it is working perfectly. And while searching with the above error in the following link someone suggested the following:

"Powershell has a hard limit of 524288000.

The value for the powershell limit is in web.config file.

To increase the limit, increase the value and then recycle the app pool or iisreset"


Not sure where I will be able to edit the web.conf file, if so, then what would be the impact and how to edit that file,

Need advise is there any way to  execute the command without error.

Get-Mailbox -ResultSize Unlimited | Set-MailboxJunkEmailConfiguration -TrustedSendersAndDomains @{Add='corp@doamin1.com','admin@domain2.com'}

Watch Question
Most Valuable Expert 2014
This problem has been solved!
Unlock 2 Answers and 5 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE