PowerShell
You're viewing a free preview. Sign in free to read every script.
Why this exists Most PowerShell errors are non terminating : the command reports a problem, then carries on. A script built that way keeps running after something has gone wrong, which is how a "successful" job leaves…
PowerShell Basics: Errors, try/catch and Writing a Real Script
Terminal versus non-terminating errors, ErrorActionPreference, try/catch/finally, and a complete parameterised script that reports old log files and only deletes them when asked. The bridge from typing commands to writing scripts.
Sign in free to read this script, along with the rest of the library.
Sign in free