MaxEnvelopeSize Quota Exceeded

Running get-mailboxpermission against mailboxes generates following error:

Sending data to a remote command failed with the following error message: The WinRM client sent a request to the remote WS-Management service and was notified that the request size exceeded the configured MaxEnvelopeSize quota. For more information, se
e the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OperationStopped: (System.Manageme...pressionSyncJob:PSInvokeExpressionSyncJob) [], PSRemotingTransportException
    + FullyQualifiedErrorId : JobFailure
    + PSComputerName        : xxxxxxxxxxx

This happens when job is run against large OU but was never problem in the past: could run against all mailboxes.  

I've looked to the WinRM configuration and have upped maxenvelopesizekb from 150 to 700.  I have not yet added this parameter to the IIS web.config file.  The parameter does not currently exist in the web.config file...should it?  

We did run winrm quickconfig a couple of months ago as part of trouble shooting another issue...this may be how envelopesize got to 150.

So, I'm a little uncertain about the next step; i.e. should I edit the web.config file and then do IISRESET?  Also, I'd like to understand why this got out of whack in the first place as large queries have run fine in the past and underlying data has not changed; i.e. number of mailboxes hasn't increased and number of full access permissions hasn't increased dramatically.

Thanks in advance for any help anyone can provide.

Greg
CFCGregAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Minecraft_ EndermanCommented:
We can edit the web.config file to check this problem.

Modify the entry : MaxEnvelopeSizeKB="700" in OperationsConfiguration key section in the web.config file located under /POWERSHELL. Increase the value, then run IISReset.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.