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

Doctor Scripto

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*

 

0 comments

Discussion is closed.

Feedback usabilla icon