title: Get-WmiObject Win32_networkadapterconfiguration
body: <p>I'm trying to use WMI to retrieve network adapter information on remote servers. </p>
  
  <p>I've ran a few Get-WmiObject commands with various degrees of success.</p>
  
  <p>This line works fine:</p>
  
  <pre><code> Invoke-Command $serverName -ScriptBlock {Get-WmiObject 
   Win32_networkadapterconfiguration | where {$_.Index -eq 7}} 
  </code></pre>
  
  <p>When I try to introduce a variable to the command it returns nothing:</p>
  
  <pre><code> $Variable = 7
   Invoke-Command $serverName -ScriptBlock {Get-WmiObject 
   Win32_networkadapterconfiguration | where {$_.Index -eq $Variable}}
  </code></pre>
  
  <p>Any idea why the command with the variable would fail?</p>