How can I get the current user\'s login name from Windows Active Directory using C# code?
System.DirectoryServices.AccountManagement.UserPrincipal.Current.Name
This is also working for me! Thanks