October 3rd, 2013

PowerTip: Use PowerShell to Find Video-Related WMI Classes

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to find WMI classes that are related to a video subsystem.

Hey, Scripting Guy! Question How can I find all WMI classes in the root\cimv2 WMI namespace that are related to video or displays?

Hey, Scripting Guy! Answer Create an array of wildcard patterns, then pipe the results to the Foreach-Object cmdlet,
          and use the Get-CimClass cmdlet to find dynamic WMI classes:

“*video*”,”*display*” | foreach {Get-CimClass -ClassName $psitem -QualifierName dynamic}

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.