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.