title: PowerShell - Match multiple string entries in a CSV file
body: <p>I'm trying to <code>-match</code> more than one string in a CSV file. Sample CSV below:</p>
  <pre><code>Hostname,IpAddress,Domain
  x200apple300,1.2.3.4,contoso.local
  x200banana300,1.2.3.5,contoso.local
  x200orange300,1.2.3.6,contoso.local
  x200kiwi300,1.2.3.7,contoso.local
  </code></pre>
  <p>Sample code:</p>
  <pre><code>$csv = Import-Csv &quot;C:\Files\csvExample.csv&quot;
  $csv | Where-Object {$_.Hostname -match &quot;kiwi&quot;}
  # All OK. Now match multiple hostnames.
  
  $csv | Where-Object {$_.Hostname -match &quot;kiwi&quot;, &quot;orange&quot;}
  # Not working.
  
  $csv | Where-Object {$_.Hostname -contains &quot;apple&quot;, &quot;banana&quot;}
  # Not working
  </code></pre>
  <p>How can I match multiple hostnames in this example? What am I doing wrong.</p>