liveBook · Manning

Common Information Model

As explained in Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

CIM, the Common Information Model, is a standard information model for representing managed computing resources and their relationships.

The Common Information Model (CIM) provides a way to represent and manage computing resources, including network adapter configurations. In PowerShell 7, CIM commands replace Windows Management Instrumentation (WMI), while working mostly the same way. section 15.2

When no dedicated cmdlet performs an administrative action, query the relevant CIM class, filter the objects, inspect available methods, and invoke the required method. For example, filter Intel network adapter configurations before enabling DHCP. section 15.2

Enable DHCP on selected adapters

Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration -Filter "description like '%intel%'" | Invoke-CimMethod -MethodName EnableDHCP. The returned value indicates the method result and may require lookup.

How Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS covers it

How deep it goes
Demonstrates querying, filtering, method discovery, invocation, and return-value interpretation without detailing CIM internals.
Examples
Uses Intel network adapter configurations, filtered queries, EnableDHCP, and returned method-status values.
What you can do after
Operate/configure selected network adapters by filtering CIM instances and invoking their available methods.
How it connects
Connects CIM with PowerShell, WMI, network adapter configuration, DHCP, and method invocation.

Also explained in

Compare how 2 books explain Common Information Model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS. The section links point to the parts of the book it draws on.