"Well, how did I get here?"
I'm running through a large number of users (>100K) returned from AD (findall) and need to check attributes (samAccountName, mail, etc) for specific errors. Those will get pushed up to Bruce Payette's example of a GraphicalProcessViewer for correction and thus we have the challenge.
First the example:
$grid.DataSource = New-Object Collections.ArrayList `
(,(gps | sort $sortCriteria |
select name,id,handles,workingset,cpu))
Love it, but I need to insert my list of errors instead of using Get-Process as the feed for the ArrayList. There will be four columns to display; dn (self explanatory), attribute (ldap name of attribute with error), error (value of attribute that triggered the error), update (suggested replacement). So the idea is loop through the results of FindAll and write the errors to an arraylist because there's a large volume and I need the performance.
First of all how do I create an empty multi-dimensional arraylist to hold the errors?
Second, is this really the most performant way to sift wheat from chaff?
Third and probably the topic for a separate question is the issue of identifying the row,column updated by the user, but we'll burn that bridge when we come to it.
"Same as it ever was. Same as it ever was. Same as it EVER WAS."