December 16th, 2012

PowerTip: Use the Get-Cimclass Cmdlet to Find WMI Properties

Doctor Scripto
Scripter

Summary: Use Windows PowerShell 3.0 to find specific WMI properties.

Hey, Scripting Guy! Question How do I find what WMI class contains the Service Pack property?

Hey, Scripting Guy! Answer Charlotte PowerShell User Group member Brian Wilhite says: The easiest way to find the WMI class or classes that contain the “Service Pack” property, you’ll use theGet-CimClass cmdlet with the -PropertyName parameter and specify a wild card search.

Get-CimClass -PropertyName *servicepack*

 

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.