title: C# Determine remote desktop login user's computer name
body: <p>I have been researching for a couple of weeks now, on and off, on how to determine the computer name of the user that is logged in via remote desktop.</p>
  
  <p>I have an application that users run on a terminal server environment, and I would like to capture and store the name of the computer that they are using to connect to the terminal server with.</p>
  
  <p>So far, I have not been able to find code or create my own that can do this, and I think I am just not asking the right questions.</p>
  
  <p>Any assistance would be greatly appreciated.</p>
  
  <p>PS. I am using C# and .Net 4.0</p>