Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Error handling through the pipeline

$
0
0

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


Viewing all articles
Browse latest Browse all 13067

Trending Articles