Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Dynamically split objects into smaller groups

$
0
0

Scenario is as follows:

Pass in large number of systems (say 1000), break into same size groups (say 100), execute a background process for each group to conduct a WMI query, so I end up in this example with 10 background jobs running with 100 systems in each...but again, I want to do this dynamically regardless of the number of system names passed, though the group size would always be the same.

This should be a simple thing I would think, but I can't seem to wrap my head around how to actually do it without manually coding everything.


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images