title: Powershell The last logon user in the remote computer
body: <p>I want a script that collects all logons from the organization's computers, and shows the last user logon and the most user's access in the computer.</p>
  
  <p>I run this script from domain controller, but i only get the computer and the last logon, I don't have the last user logon or the frequency of logon.</p>
  
  <pre><code>Get-ADComputer -Filter * -Properties * | FT Name, LastLogonDate, user -Autosize
  </code></pre>