 <p>You may checkout the <a href="http://msdn.microsoft.com/en-us/library/system.environment.username.aspx" rel="nofollow">UserName</a> property:</p> <pre><code>string username = Environment.UserName; </code></pre>