Chapter 40. Best practices

This chapter covers

  • PowerShell general best practices
  • PowerShell 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 chapter, 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.

40.1. PowerShell general best practices

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

  • Read the help ...

Get PowerShell in Depth now with the O’Reilly learning platform.

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