πŸ‡¬πŸ‡§ | πŸ‡©πŸ‡ͺ | πŸ‡«πŸ‡· | πŸ‡ͺπŸ‡Έ | πŸ‡¨πŸ‡³ | πŸ‡ΈπŸ‡¦
We don't have DLL but we have:
Windows File Analyzer & Online Fast Antivirus

A minimalist interface featuring quick search, convenient uploading, and a clean section structure.

πŸ›‘οΈπŸ” Fast verify your file, just drop on this page.
Virus check, hashes, sign verify, architecture, AI info.

How to fix "The WinRM client sent a request to the remote WS-Management service and was notified that the request size exceeded the configured MaxEnvelopeSize quota."

The WinRM error message indicates that the data payload being transmitted between the client machine and the remote server exceeds the maximum size limit (MaxEnvelopeSize) allowed by the Windows Remote Management (WinRM) configuration. By default, WinRM sets a restriction on the packet size (often 512 KB) to prevent denial-of-service (DoS) attacks and excessive memory consumption. When you run a script, query large event logs, or pull heavy configuration data that surpasses this threshold, WinRM blocks the operation and throws this quota violation error.

To resolve this issue, you must increase the MaxEnvelopeSizekb value on both the source (client) machine and the destination (remote server) machine to ensure they can handle larger data packages.

Step-by-Step Fix

Follow these steps to increase the WinRM envelope size using Windows PowerShell. You must perform these steps on both the machine initiating the connection and the remote target machine.

Step 1: Open PowerShell as Administrator

  1. Click on the Start menu or press the Windows Key.
  2. Type PowerShell into the search bar.
  3. Right-click on Windows PowerShell from the search results.
  4. Select Run as administrator. Click Yes if a User Account Control (UAC) prompt appears.

Step 2: Check the Current MaxEnvelopeSize Value

Before making changes, check your existing configuration value by running the following command:

Get-WSManInstance -ResourceURI winrm/config | Select-Object MaxEnvelopeSizekb

Note down the default value (typically 512) so you have a baseline configuration.

Step 3: Increase the MaxEnvelopeSize Limit

Update the configuration to allow larger data sizes. Increasing this value to 8192 (which equals 8 MB) is generally sufficient for most heavy automation tasks and large data transfers. Run this command:

Set-WSManInstance -ResourceURI winrm/config -ValueSet @{MaxEnvelopeSizekb = "8192"}

Step 4: Verify the Changes

Ensure that the system successfully applied the new configuration setting by running the retrieval command again:

Get-WSManInstance -ResourceURI winrm/config | Select-Object MaxEnvelopeSizekb

Verify that the output now displays 8192.

Step 5: Restart the WinRM Service

To make sure all configurations take effect and active sessions clear, restart the Windows Remote Management service with this command:

Restart-Service -Name WinRM

Alternative Method: Group Policy Objects (GPO)

If you manage multiple machines in an Active Directory domain environment, you can deploy this fix globally:

  1. Open the Group Policy Management Console (gpmc.msc).
  2. Navigate to: Computer Configuration -> Administrative Templates -> Windows Components -> Windows Remote Management (WinRM) -> WinRM Service.
  3. Locate and double-click the policy named Specify maximum size of WS-Management packets.
  4. Set the policy status to Enabled.
  5. Input your desired value in kilobytes (for example, 8192) in the MaxEnvelopeSize field.
  6. Click Apply and then OK.
  7. Run gpupdate /force in a command prompt on the target machines to apply the policy immediately.
ERROR_WSMAN_UNKNOWN_HTTP_STATUS_RETURNED | ERROR_WSMAN_UNSUPPORTED_HTTP_STATUS_REDIRECT | ERROR_WSMAN_HTTP_SERVICE_UNAVAILABLE_STATUS | ERROR_WSMAN_HTTP_NOT_FOUND_STATUS | ERROR_WSMAN_EVENTING_MISSING_LOCALE_IN_DELIVERY

There may be some errors. Learn Microsoft