title: Get Logged on Users from a List of Computer Names
body: <p>I wanted to extract a list of users logged on to remote pc, the ps names would be fed in using a .csv file.</p>
  
  <p>I was able to get a command </p>
  
  <pre><code>Get-WmiObject Win32_LoggedOnUser -ComputerName $Computer | Select Antecedent -Unique
  </code></pre>
  
  <p>to query the user names, could any one help me more on how to write this code?</p>