diff --git a/wmi-adapter/wmi.resource.ps1 b/wmi-adapter/wmi.resource.ps1 index 1bedc227..908e987c 100644 --- a/wmi-adapter/wmi.resource.ps1 +++ b/wmi-adapter/wmi.resource.ps1 @@ -9,6 +9,7 @@ param( $stdinput ) +# catch any un-caught exception and write it to the error stream trap { Write-Trace -Level Error -message $_.Exception.Message exit 1