Test-DSCConfiguration exceeds the maximum envelope size

I’ve recently encountered an error while I was using the Test-DSCConfiguration cmdlet:

The WS-Management service cannot process the request. The computed response packet size (519056) exceeds the maximum envelope size that is allowed (512000).

test-DSC-config-error-01

The Get-DscConfigurationStatus -All worked well and indicated that I had more than 400 resources in my config.

To fix it, I…

Set-WSManInstance -ValueSet @{MaxEnvelopeSizekb = "1000"} -ResourceURI winrm/config
dir WSMan:\localhost

…doubled the default value of 500KB and the Test-DSCConfiguration cmdlet worked back again as expected 🙂

Advertisements

2 thoughts on “Test-DSCConfiguration exceeds the maximum envelope size

  1. Pingback: Dew Drop – April 18, 2016 (#2232) | Morning Dew

  2. Pingback: Dew Drop – April 18, 2016 (#2232) | Tech News

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s