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:

PowerShell scripting best practices

PowerShell in the enterprise best practices