April 21st, 2013

PowerTip: Use PowerShell to Find WMI Classes with a Specific Property

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find WMI classes that contain a specific property.

Hey, Scripting Guy! Question How can I use Windows PowerShell to help find a WMI class that contains a specific property?

Hey, Scripting Guy! Answer Use the Get-CimClass cmdlet in Windows PowerShell 3.0, and use the specific property name or a wildcard pattern to help you find the class:

Get-CimClass -PropertyName version

Get-CimClass -PropertyName *acl*

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.