title: Get LastLogonUser and LastLogonDate on computers in AD
body: <p>We can use </p>
  
  <pre><code>Get-ADComputer $computerName -Properties LastLogonDate
  </code></pre>
  
  <p>to get <code>LastLogonDate</code>. But how to know which user did the Last Logon? <code>Get-ADUser</code> has a <code>LastLogon</code> property, but it seems we could not use it to decide which computer the user logon.</p>