PowerTip: Use PowerShell to Find Video-Related WMI Classes

PowerTip: Use PowerShell to Find Video-Related WMI Classes

  • Comments 1
  • Likes

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}

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • PoSh v2:

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