Chapter 6. Querying WMI

After completing this chapter, you will be able to:

  • Understand the different methods for querying WMI

  • Use the Select-Object cmdlet to create a WMI query

  • Configure the filter argument to limit information returned by WMI

  • Configure the WMI query to return selected properties

  • Use the Where-Object cmdlet to improve performance of WMI

  • Leverage both hardware classes and system classes to configure machines

After network administrators and consultants get their hands on a couple of Windows Management Instrumentation (WMI) scripts, they begin to arrange all kinds of scenarios for use. This is both a good thing and a bad thing. The good thing is that WMI is powerful technology that can be leveraged in a quick manner to solve a lot of real ...

Get Microsoft® Windows PowerShell™ Step By Step 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.