Powershell wmi classes

This is how to get a list of wmi providers:

Get-WmiObject -Namespace “root/cimv2” -List

These can be queried as follows:

Get-WmiObject -query “select * from win32_processor”

This is effectively granting you sql style queries against features on your machine.

Leave a comment