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
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.
How would I determine how many connections either WinRM or Local System has in use and what those connections point to?
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.