How I can get my first name last name with c# in my system (logging in windows with Active Directory username and pass)?
Is it possible to do that without going to t
There is an easier way to do this:
using System.DirectoryServices.AccountManagement; UserPrincipal userPrincipal = UserPrincipal.Current; String name = userPrincipal.DisplayName;