April 16th, 2015

PowerTip: Find WMI Parent Class with PowerShell

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to easily find a WMI parent class.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find what parent class a particular WMI class derives from?

Hey, Scripting Guy! Answer Use the Get-CimClass cmdlet, and select the CimSuperClassName property, for example:

(Get-Cimclass win32_bios).CimSuperClassName

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.