Today, while I was configuring an Exchange 2010 server, I got the following error:
The WinRM […] was notified that the request size exceeded the configured MaxEnvelopeSize quota
The MaxEnvelopeSize parameter defines the maximum size (in Kb) of a single SOAP request. Sometimes you may need to increase the value to be able to run a big script/command (via powershell or using the GUI).
The default maximum size is 500Kb and you can show the actual value with the command:
winrm get winrm/config
To change the value, run the following command (in the example I’m increasing the value to 1000Kb):
If you got the error from the Exchange management console, you probably need also to increase the value in the web.config file (InstallDir\ClientAccess\PowerShell). If the parameter is not already present, it can be added: