title: Filtering Names: Get-WmiObject Win32_NetworkAdapter
body: <p>as a part of my inventory script i want to to add query of DHCP enabeld or not
  i need to sample network cards starts with: &quot;Ethernet&quot;, &quot;NIC&quot; , &quot;Local&quot;</p>
  <p>how do i add it here:?</p>
  <pre><code>$DHCP = Get-WmiObject Win32_NetworkAdapter -ComputerName $Computer -Filter '(NetConnectionID like &quot;%Ethernet%&quot;) and (NetConnectionStatus=2)' |   ForEach-Object { $_.GetRelated('Win32_NetworkAdapterConfiguration') } 
  </code></pre>