Chapter 9. Designing Functions

Clear-cut guidelines can be used to design scripts and ensure that they are easy to understand, maintain, and troubleshoot. In this chapter, you will examine the reasons for scripting guidelines and view examples of both good and bad code design.

Understanding Functions

In Windows PowerShell 2.0, functions have moved to the forefront as the primary programming element used when writing PowerShell scripts. This is not necessarily due to improvements in functions ...

Get Windows PowerShell™ 2.0 Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.