title: Convert one item to lowercase before AD export
body: <p>In an ActiveDirectory Export I want the mail adresses in all lowercase, I know about <code>ToLower()</code> but I'm struggling putting it in the right place:</p>
  
  <p>(Powershell)</p>
  
  <pre><code>Get-ADUser 
  -SearchBase "OU=11-something,DC=somethingelse,DC=somethingelser" 
  -Filter {somefilters} -Properties name,mail
  |Select-Object  Name,(mail).ToLower()
  | Export-Csv -Path "D:\Path" 
   -Encoding UTF8 -NoTypeInformation
  </code></pre>
  
  <p>Is it even possible with <code>Get-ADUser</code> ? </p>