A potential speed-up would be to perform just a single query against AD and retrieve all computer group memberships at once into an array. Then you can cycle through the array without incurring additional overhead from multiple AD queries
_________________________
There are two types of vessels, submarines and targets.