WinRM error 0x800704D6 ERROR_CONNECTION_COUNT_LIMIT

%3CLINGO-SUB%20id%3D%22lingo-sub-1722344%22%20slang%3D%22en-US%22%3EWinRM%20error%200x800704D6%20ERROR_CONNECTION_COUNT_LIMIT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1722344%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20having%20a%20difficult%20time%20locating%20a%20fix%20or%20better%20ways%20to%20troubleshoot%20this%20error.%26nbsp%3B%20I%20manage%20a%20few%20hundred%20servers%2C%20and%20four%20of%20them%20are%20generating%20error%200x800704D6%20when%20running%20any%20command%20which%20uses%20WinRM%20(the%20service%20and%2For%20the%20winrm%20command)%20to%20perform%20a%20query.%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20error%20code%20(0x8007)%20is%20a%20user-mode%20error%20and%20(..04D6)%20is%201238%20in%20decimal%20and%20represents%20%3CSPAN%3EERROR_CONNECTION_COUNT_LIMIT.%26nbsp%3B%20NET%20HELPMSG%3C%2FSPAN%3E%26nbsp%3B1238%20reports%20%22A%20connection%20to%20the%20server%20could%20not%20be%20made%20because%20the%20limit%20on%20the%20number%20of%20concurrent%20connections%20for%20this%20account%20has%20been%20reached.%22%26nbsp%3B%20This%20agrees%20with%20the%20actual%20screen%20output%20when%20running%20%22winrm%20get%20winrm%2Fconfig%22%20-%20%222020-09-28T20%3A18%3A48.709Z%20Comms%20Error%20Unable%20to%20open%20async%20communications%20port%20-%20error%200x800704D6%22%20-%20This%20error%20is%20generated%20when%20logged%20in%20locally%20as%20an%20administrative%20user%20and%20running%20the%20command%20in%20PowerShell%20or%20from%20a%20monitoring%20agent%20on%20the%20affected%20system%20running%20as%20Local%20System.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20no%20helpful%20information%20in%20the%20Applications%2C%20System%2C%20or%20Microsoft%2FWindows%2FWindows%20Remote%20Management%2FOperational%20Event%20Logs.%26nbsp%3B%20No%20errors%2Fwarning%2Fcritical.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20currently%20occurring%20on%20Windows%20Server%202016%20%26amp%3B%202019%20in%20VMWare%20ESXi%20%26amp%3B%20Azure.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20determine%3C%2FP%3E%3COL%3E%3CLI%3EWhat%20exactly%20is%20the%20connection%20limit%20referring%20to%3F%26nbsp%3B%20The%20account%20or%20the%20WinRM%20service%3F%26nbsp%3B%20Other%20processes%20run%20as%20Local%20System%20aren't%20generating%20this%20error.%3C%2FLI%3E%3CLI%3EHow%20would%20I%20determine%20how%20many%20connections%20either%20WinRM%20or%20Local%20System%20has%20in%20use%20and%20what%20those%20connections%20point%20to%3F%3C%2FLI%3E%3CLI%3EIs%20there%20a%20way%20to%20log%20better%20data%20about%20WinRM%20to%20aid%20in%20troubleshooting%3F%3C%2FLI%3E%3C%2FOL%3E%3CP%3EUltimately%2C%20I%20want%20to%20be%20able%20to%20identify%20this%20as%20a%20problem%20with%20my%20RMM%20tool%20and%20automate%20a%20fix%20for%20it.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20help%20here.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1722344%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New Contributor

Hello!

 

I'm having a difficult time locating a fix or better ways to troubleshoot this error.  I manage a few hundred servers, and four of them are generating error 0x800704D6 when running any command which uses WinRM (the service and/or the winrm command) to perform a query.   

 

The error code (0x8007) is a user-mode error and (..04D6) is 1238 in decimal and represents ERROR_CONNECTION_COUNT_LIMIT.  NET HELPMSG 1238 reports "A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached."  This agrees with the actual screen output when running "winrm get winrm/config" - "2020-09-28T20:18:48.709Z Comms Error Unable to open async communications port - error 0x800704D6" - This error is generated when logged in locally as an administrative user and running the command in PowerShell or from a monitoring agent on the affected system running as Local System.

 

There is no helpful information in the Applications, System, or Microsoft/Windows/Windows Remote Management/Operational Event Logs.  No errors/warning/critical.

 

This is currently occurring on Windows Server 2016 & 2019 in VMWare ESXi & Azure.  

 

I'm trying to determine

  1. What exactly is the connection limit referring to?  The account or the WinRM service?  Other processes run as Local System aren't generating this error.
  2. How would I determine how many connections either WinRM or Local System has in use and what those connections point to?
  3. Is there a way to log better data about WinRM to aid in troubleshooting?

Ultimately, I want to be able to identify this as a problem with my RMM tool and automate a fix for it.  

 

Thanks for any help here.

 

1 Reply
Highlighted

It could simply be that multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed