title: Find all users with a 'Primary SMTP address' that ends with '@example.com'
body: <p>We have some groups and/or users that have the wrong Primary SMTP address.</p>
  
  <ol>
  <li><p>Find all users with primary <code>uppercase</code> SMTP address of <code>*@example.com</code> while not including lowercase addresses.</p></li>
  <li><p>Result should display users Name and Primary Email Address</p></li>
  </ol>
  
  <p>Tried:</p>
  
  <pre><code>Get-Mailbox -Filter {recipienttypedetails -eq "SharedMailbox"} -ResultSize Unlimited |
      where-Object {($_.PrimarySMTPAddress -like "*@example.com")} |
      fl displayname,PrimarySMTPAddress
  </code></pre>
  
  <p>But this returns Users that have "No" uppercase SMTP address. I am looking for users and groups that have the wrong SMTP address but have a correct smtp address. The SMTP addresses need to be corrected.</p>