WinRb / WinRM

Ruby library for Windows Remote Management
Apache License 2.0
412 stars 117 forks source link

Do full enumeration of run_wql requests #259

Closed seandilda closed 7 years ago

seandilda commented 7 years ago

Implement WSENUM pulls in order to get all responses from a wql query. Allow a block to be passed to run_wql so that items can be processed as they're queried instead of building a large Array first. This will reduce memory usage and total run time for some large queries.

This fixes #168

mwrock commented 7 years ago

This looks good and will be a great addition! Would you mind adding a test that utilizes multi item responses that would have broken prior to this?

seandilda commented 7 years ago

Sure thing! I just pushed the new integration tests.

mwrock commented 7 years ago

this is awesome! Thanks for this!