PowerTip: Use PowerShell to Find Video-Related WMI Classes

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}

Comments (1)

  1. Krunch {The Commenter formerly known as K} says:

    PoSh v2:

    gwmi -List | ?{$_.name -imatch "video" -or $_.name -imatch "display"}

Skip to main content