CIM error
I was trying get some hardware info via CIM, the other day and ran into this error message: Get-CimInstance : The response that the WS-Management service computed exceed the internal limit for envelope size. At line:4 char:12 + $Logical = Get-CimInstance -CimSession $Session -ClassName CIM_EnabledLogicalEle … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : LimitsExceeded: (root\cimv2:CIM_EnabledLogicalElement:String) [Get-CimInstance], CimExce ption + FullyQualifiedErrorId : HRESULT 0x80338049,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand + PSComputerName : hostname After googling the error i found a lot of site pointing to this command – winrm set winrm/config @{MaxEnvelopeSizekb=”1024″} which needs to be run as admin. Only problem it doesn’t work on windows 7/2008+… […]