November 2021
Beginner to intermediate
144 pages
1h 58m
English
For successful scripting, error reporting is a must-have. If there is an error, you want to report it to the admin or the owner of the process/automation. PowerShell has different ways to do error reporting. The most common way is the $error variable as it contains all the errors that have occurred in the session. Let’s look at some cheat code examples that you can utilize. You can log errors or send them via email.
Below is the code that can be used to send errors via email. You can insert this ...
Read now
Unlock full access