I have a Powershell script that retrieves some data from a database, uses
Group-Object to collect it into similar groups, then uses
foreach to act on each group.
The trouble is that some groups have more than 100 items, but my process can only act on 100 at once. It was written specifically to handle the items in the
Group-Object results and I'd rather not rewrite that part.
Is there some elegant way to have
Group-Object break up the groups into at most 100 items at a time? Or do I have to collect them with a