O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Best Practices and Sample Scripts

So far, we have discussed all the topics that we intended to cover. This has been a long journey and I thank you for staying with me this far. This is going to be the last chapter of this book. In this chapter, we are going to talk about various best practices and three sample scripts. We will start with a discussion on general best practices to be followed while writing PowerShell scripts. In the subsequent sections, we will discuss three sample scripts. In general, this chapter will cover the following topics.

  • Best practices
  • Security hardening script
  • Capacity check report
  • Using a proper editor

So without wasting much time, let's start our first topic of discussion.

Best practices

We have covered many aspects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required