Chapter 11. Tackling Windows Management Instrumentation

I’ve been looking forward to writing this chapter, and dreading it at the same time. Windows Management Instrumentation (WMI) is probably one of the best things Microsoft has ever offered to administrators. At the same time, it’s also one of the worst things they’ve ever inflicted on us. In this chapter, I’ll be introducing you to WMI, showing you how it works, and explaining some of its less-beautiful aspects, so that there’s full disclosure on what you’re up against.

11.1. Retrieving management information

The idea behind WMI is a good one: it’s a generic system for retrieving management information. In some limited cases it can also be used for implementing configuration changes, although, ...

Get Learn Windows PowerShell in a Month of Lunches 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.