using get-CimInstance to "list" a keyword

This topic contains 2 replies, has 2 voices, and was last updated by  Jeff Taylor 1 year, 6 months ago.

  • Author
    Posts
  • #34877

    Jeff Taylor
    Participant

    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
    Participant

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

    Give the same output.

  • #34881

    Jeff Taylor
    Participant

    thank you Matt

You must be logged in to reply to this topic.