title: Powershell List of Users and the Hosts They Rode In On
body: <p>Would anybody have any suggestions?  I need to generate a list of users and the computers they're logging into, from Active Directory.  I'm hoping to get something like this:</p>
  
  <p><strong>Username       Hostname</strong></p>
  
  <p><em>user.lastname ComputerA1</em></p>
  
  <p>So far, I've gotten:</p>
  
  <blockquote>
    <p>Enter-PSSession Import-Module ActiveDirectory Get-ADComputer
    -Filter * -Properties Name Get-ADuser -filter * -Properties * | export-csv '\\\AD_UserLists.csv'</p>
  </blockquote>
  
  <p>This works, kinda.  I can generate a list of computers from AD and I can generate a list of ADUsers (albeit with ALL the users information).  Unfortunately, I can't generate the data into a single CSV.</p>
  
  <p>Suggestions/Advice????</p>
  
  <p>Thanx,
  David</p>