PoshCode Archive  All files named "foreach-withexception.ps1"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for foreach-withexception.ps1

Added: simple function like foreach, but that traps exceptions using v2, and logs then in the $lastex variable. this way the pipeline can continue and process the objects that aren’t having errors happen against them. eventually this needs to be made much better, and be a v2 advanced function file: [3856c3b4fc] check-in: [8861eb2d12] user: karl prosser branch: trunk, size: 1217