Try/catch in Powershell

Since Powershell has no built in function for try/catch, error handling can get a bit tricky Adam Weigert has published a nice try/catch function that makes it a whole lot easier: http://weblogs.asp.net/adweigert/archive/2007/10/10/powershell-try-catch-finally-comes-to-life.aspx

Advertisements