Book Image

PowerShell Troubleshooting Guide

By : Mike Shepard
Book Image

PowerShell Troubleshooting Guide

By: Mike Shepard

Overview of this book

Table of Contents (15 chapters)
PowerShell Troubleshooting Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we looked at several practices borrowed from traditional software development that will help your scripting look more professional. These practices include things like using naming conventions for different types of PowerShell entities, breaking scripts down into smaller units, using version control consistently, and finally unit testing and mocking.

In the next chapter, we will look at using some of the built-in features of PowerShell to proactively create more trouble-free programs. These features include error handling (try / catch vs trap), parameterization and pipeline input, parameter validation, parameter type transformation, and so on.