This section shouldn't be necessary for people who are serious about writing scripts, but in my experience it involves one of the simplest techniques of troubleshooting and, unfortunately, one of the techniques that is often overlooked. We have talked about how to handle errors using try
/ catch
/ finally
, and about the difference between terminating and non-terminating errors, but we haven't spent any time talking about error messages themselves. The simple practice of carefully reading the error messages that occur can help to pinpoint not only the problem, but also where the problem occurred in the code. While that information isn't unique to error messages in PowerShell, I have seen countless occasions where it is overlooked.
PowerShell Troubleshooting Guide
By :
PowerShell Troubleshooting Guide
By:
Overview of this book
Table of Contents (15 chapters)
PowerShell Troubleshooting Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
PowerShell Primer
PowerShell Peculiarities
PowerShell Practices
PowerShell Professionalism
Proactive PowerShell
Preparing the Scripting Environment
Reactive Practices – Traditional Debugging
PowerShell Code Smells
Index
Customer Reviews