Chapter 4. Best practices and optimization

 

This chapter covers
  • Finding code samples
  • Securing the PowerShell environment
  • PowerShell best practices
  • WMI best practices

 

We’ve had a good look at PowerShell and WMI in the last two chapters. In this chapter, we’ll start to examine how you can use them to solve your administrative problems. We’re not quite at the point of jumping into lots of scripts, though. That treat is reserved for part 2 of the book, which starts with the next chapter.

As the title suggests, this chapter is about best practices. There are a lot of views on what constitutes best practices, ranging from a loose collection of tips and tricks to a rigid set of commandments that should be followed to the letter. My approach ...

Get PowerShell and WMI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.