Is an interface that runs at boot and is used for querying and managing physical or logical components on Windows.

Components

ComponentDescription
WMI providersObjects that monitor events/data related to a specific object.
ClassesThese are used by the WMI providers to pass data to the WMI service.
MethodsThese are attached to classes and allow actions to be performed. For example, methods can be used to start/stop processes on remote machines.
WMI repositoryA database that stores all static data related to WMI.
CIM Object ManagerThe system that requests data from WMI providers and returns it to the application requesting it.
WMI APIEnables applications to access the WMI infrastructure.
WMI ConsumerSends queries to objects via the CIM Object Manager.

Examples

Get hostname

wmic computersystem get name

OS info

wmic os list brief or Get-WmiObject -Class Win32_OperatingSystem | select SystemDirectory,BuildNumber,SerialNumber,Version | ft