title: How to get LDAP displayname and email id using Msbuild?
body: <p>I got communitytasks to send mail. But in subject itself if i add display name of LDAP user, I would know who is taking build.</p>
  
  <p>Following Code in Powershell would give me mail id and displayname</p>
  
  <pre><code>    $searcher = [adsisearcher]"(samaccountname=$env:USERNAME)"
      $mailid= $searcher.FindOne().Properties.mail
      $DispName= $searcher.FindOne().Properties.displayname
  </code></pre>
  
  <p>Is there any way to get mail id and displayname in Msbuild or is it better to call powershell commands through inline task?</p>