using get-CimInstance to "list" a keyword

This topic contains 2 replies, has 2 voices, and was last updated by  Jeff Taylor 2 years, 4 months ago.

  • Author
  • #34877

    Jeff Taylor

    PS MOL 14.6 (Using Get-CimInstance) there's a caveat about no -list parameter.

    So how do I query CIM for a keyword similar to:

    Get-WmiObject -list *product

    Only thing I can find is:
    Get-CimClass -Namespace root\cimv2

    but I don't want to go through that whole list.

    Is WMI explorer my only option?

  • #34878

    Matt Bloomfield

    Get-WmiObject -List *product
    Get-CimClass -ClassName *product

    Give the same output.

  • #34881

    Jeff Taylor

    thank you Matt

You must be logged in to reply to this topic.