WinRM Best Practices

This topic explains some of the best practices for using the various features of the WinRM API.


When a quota is hit, the WinRM service returns an error to the client. As a result, the client logic must explicitly retry the operation based on the returned error.

Event subscriptions

When using Collector-initiated subscriptions, limit the number of remote computers to 500 and isolate the Windows Event Collector service (wecsvc) in a separate host process.

A connection error will hold a thread until it times out. A large number of simultaneous connection errors can cause thread pool exhaustion and render the server unresponsive.