Is there any specific advantage (say speed maybe) to doing this in a foreach loop or through the pipeline using the error variable?
Is there a "best practice" or are both solution equally acceptable?
I'm in the process of writing an AD user management script that handles account creation, modification, disabling, and deletion, and have a good chuck of it completed, so i want to be sure that my error handling is rock solid.
Thanks