Appendix A. Best practices

This chapter covers

  • General best practices
  • Scripting best practices
  • PowerShell in the enterprise best practices

Throughout this book, we’ve noted—and sometimes hinted at—practices you can follow to make your PowerShell efforts, especially scripts, more maintainable, better performing, and more flexible than you ever thought possible. In this appendix, we’ll reiterate and organize those suggestions for easier reference. The number one recommendation is to use PowerShell every day. The following recommendations aren’t in any particular order of importance.

PowerShell general best practices

These recommendations are designed for you to get the best out of PowerShell:

  • Read the help files—there’s a mass of good ...

Get PowerShell in Depth, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.