PowerTip: Use PowerShell to Find Video-Related WMI Classes

Doctor Scripto

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}


Discussion is closed.

Feedback usabilla icon