title: powershell -Or operator not working
body: <p>Can someone tell me why the -or does not work.  If I run the code the first output is administrator which returns true but when it gets to the kahuna account it still returns false not true.</p>
  
  <pre><code>(Get-LocalUser).Name | Out-File C:\localusers.txt
  
  ForEach ($User in Get-Content C:\localusers.txt)
  {
      If ($User -match "administrator" -or "kahuna")
      {
          Write-Host True
      }
      Else
      {
          Write-Host False
      }
  }
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>True, False, False, False, False</p>
  </blockquote>
  
  <p>Here are the accounts listed in order they appear </p>
  
  <blockquote>
    <p>administrator, DefaultAccount, Guest, Kahuna, PCUser</p>
  </blockquote>