Summary
In this chapter, we discussed the general best practices for PowerShell. We also discussed two sample scripts. The scripts that I used were not the final ones; they contain some portions that do not adhere to the best practices. I discussed those points and mentioned them here. It is intentional as I want you to work on it and give suggestions so that we can rectify this script. It is a task and challenge for you.
In the entire book, I have not given any tasks for practice. These two scripts are the practice scripts for you. Visit my blog and comment there so that we can take it forward. These scripts might not be useful to you in their current state, but they were provided as a starting point to help sharpen your skills.
I plan to host two more scripts in the blog. The first one is Set-Security
, which will set the security of the entire vSphere environment as per VMware best practices (it will be the logical next step of Get-Security
). The next one will be for elaborate reporting...