O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

20.5. Exploring CIM Classes and Objects

One of my favorite PowerShell features—being able to poke at objects in the interactive command prompt—is available with WMI objects too. You can get an object and interrogate it for new features that you have not used yet. You can discover other objects in the process that can help you do your job better. Not to mention that knowing how to look around the system will be of immense value when troubleshooting problems.

20.5.1. Getting a List of Classes and Namespaces

The previous section introduced the meta_class WMI class. Every WMI class is actually an instance of meta_class, and knowing that, we can retrieve a list of all classes in a namespace. All we need is to issue a query that gets all instances ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required