title: Check if user is a Domain User or Local User
body: <p>I want to be able to check giving a username if that user is a Domain User or a Local User (using .NET preferable) of the machine but could find much on this on the net </p>
  
  <pre><code>public static Boolean isLocalUser (string name)
  {
  //code here
  }
  </code></pre>
  
  <p>EDIT
  for example you are given me.user as a string</p>