title: PowerShell 'Or' Statement
body: <p>I'm trying to go through the Active Directory, and grab users who meet a certain criteria. I want to get users have either Manager A or Manager B, but I'm not sure how to implement the or statement. Here's my code:</p>
  
  <pre><code>Get-ADUser -Filter * -Properties country, extensionattribute9 | if (extensionattribute9 -eq 'Smith, Joe') or (extensionattribute9 -eq 'Doe, John') {select extensionsattribute9, country}
  </code></pre>
  
  <p>In this code, it doesn't recognize <code>extensionattribute9</code>, which gives you the user's manager.</p>
  
  <p>I also tried attempted using <code>where</code> instead of <code>if</code>, but to no avail.</p>