SCO2012: Getting detailed PowerShell Error information in Run .Net Activity
When using PowerShell in script activity, the error message can be very hard to read, since it only outputs the error message and not the additional information about the error. To make this better, you can use the following method: Set your error action preference to stop.