I recently wrote a PowerShell script that works great - however, I\'d like to now upgrade the script and add some error checking / handling - but I\'ve been stumped at the f
-ErrorAction Stop is changing things for you. Try adding this and see what you get:
-ErrorAction Stop
Catch [System.Management.Automation.ActionPreferenceStopException] { "caught a StopExecution Exception" $error[0] }