title: Powershell - Looking Up File Owner in Active Directory
body: <p>How do I look up for information about a file owner in Active Directory? The following doesn't work because it parses Domain\User to the Get-ADUser command</p>
  
  <pre><code>$owner = Get-Acl file.txt | Select-Object Owner | Out-String
  Get-ADUser -Identity $owner
  </code></pre>
  
  <p>I would also like to be able to query users from other domains, as by default, Get-ADUser looks up on your local domain.</p>