September 9th, 2014

PowerTip: Find WMI Classes by Using PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find WMI classes.

Hey, Scripting Guy! Question I am searching for a WMI class to help me find information about Windows startup configuration.
           I am unsure of the class name. How can I use Windows PowerShell to help me find the class (assuming it exists)?

Hey, Scripting Guy! Answer Use the Get-CimClass CIM cmdlet that was introduced in Windows PowerShell 3.0.
           Here is an example of using the Get-CimClass cmdlet to find Windows startup information.

 Get-Cimclass win32_st*

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.