Using these links...
Kixomatic
Enable DHCP
Win32_NetworkAdapterConfiguration

...produced this code...
Code:
 
Break On
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\" + $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=-1")

For Each $objNetAdapter In $colItems
$=$objNetAdapter.EnableDHCP
Next



Hope this helps.
_________________________
(... better days ahead)