When using powershell one can change how your scripts reacts to errors. Quite handy if your need to stop your script in case of error for instance.
Settings this variable $ErrorActionPreference
You can choose between the following settings
More information can be found in this blog.
http://blogs.technet.com/b/heyscriptingguy/archive/2010/03/08/hey-scripting-guy-march-8-2010.aspx
Etiketter: Powershell