magritton
11/21/2014 - 2:03 PM

Powershell try and catch, only works in v2

Powershell try and catch, only works in v2

try {    dir nonexistent: -errorAction Stop}
catch {	"Something strange occurred: $_"}