liveBook · Manning

Win32_NetworkAdapterConfiguration

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

Win32_NetworkAdapterConfiguration is a Windows CIM class representing the configuration of a network adapter.

Win32_NetworkAdapterConfiguration is a Windows CIM class that represents configuration bound to a network adapter. It helps target specific adapters, such as Intel adapters, for administrative changes like enabling DHCP. section 15.2

A practical CIM workflow is:

  • Query the class and filter configurations by description, using WMI filter syntax such as description like '%intel%'. section 15.2
  • Inspect available class methods with (Get-CimClass Win32_NetworkAdapterConfiguration).CimClassMethods. section 15.2
  • Invoke EnableDHCP on the filtered configuration objects when no dedicated cmdlet exists. section 15.2

Enable DHCP on matching adapters

Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration -Filter "description like '%intel%'" | Invoke-CimMethod -MethodName EnableDHCP section 15.2

PS C:\> Get-CimInstance -ClassName Win32_NetworkAdapterConfiguration | 
-Filter "description like '%intel%'" | Format-List

Inspect filtered adapter configurations before changing them. section 15.2

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

How deep it goes
Explains querying, filtering, method discovery, and invocation, while stopping short of detailed method internals.
Examples
Uses Intel adapter filtering, configuration listings, method inspection, and EnableDHCP invocation.
What it assumes
Assumes basic PowerShell pipelines and distinguishes CIM commands from WMI when using PowerShell 7.
What you can do after
Operate/configure selected Windows adapters by invoking the EnableDHCP CIM method.
How it connects
Connects CIM, WMI filter syntax, PowerShell, network adapters, and DHCP.

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.