ayi_2 <pre><code class="lang-auto">string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; </code></pre>