We help IT Professionals succeed at work.
Get Started

Remote client exceeded allowed maximum

9,546 Views
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
   motingTransportException
    + FullyQualifiedErrorId : JobFailure

Can you please advise.

Reference Link:
http://beccabits.com/2011/10/07/how-to-bulk-modify-safe-senders-list-in-outlook-with-exchange-management-shell/

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"

http://social.technet.microsoft.com/Forums/en-US/8012950f-45dd-41f2-8a11-5c55b3ed8d36/allowed-maximum-is-524288000-when-running-a-powershell-script?forum=exchange2010

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'}

Thanks,
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2014
Commented:
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