Wow! Thanks Allen. That's awesome! Nice and clean. I kept thinking a Select statement would run faster than a loop because it would exit once it found a true condition, but of course the group membership is cached. I didn't think of that. Duh :-)

I guess I just assumed that part of the slowness was because the script had so many lines to parse, but now that you all point it out, that probably isn't the case. There are a lot of drive mappings. (Wouldn't it be great if end users could learn how to navigate a directory instead of asking for drive mappings to every single shared folder) Perhaps it just takes a while for Windows to map drives across a slow network link. The script can sometimes take up to a minute to complete.