title: Gathering logged on username on remote computers?
body: <p>This might be a tricky one that I would like to solve somehow. The company I previously was working for went bankrupt. And during the chaos, a lot of users took their company computers and left. </p>
  
  <p>Now, what they don't know is that we've installed UAG on each computer. A silent VPN solution that communicates with the domain controller and authenticates through the computer account in AD. </p>
  
  <p>So, what I would like to do is to run a script of some sort that tries to contact each computer and collect the username logged on to that computer. That would give me an easy way of determining if that computer is used by someone who isn't working in the company that bought the bankrupt resources. </p>
  
  <p>I've already run dsquery to find inactive computers from the past 8 weeks. Comparing that list to the whole list of computers gave me a pretty good idea of the computers that are currently in use. How should I go about doing this?</p>