Getting the User Information Who is Login Into the Computer
-
HI Friends, I have a problem regarding, Users of the Computer. See, i have to find out the User which is currently login with the System through C#.NET How i am getting to this? Please if u have a solution then reply this.
-
HI Friends, I have a problem regarding, Users of the Computer. See, i have to find out the User which is currently login with the System through C#.NET How i am getting to this? Please if u have a solution then reply this.
Hi, see Environment.UserName.
-
HI Friends, I have a problem regarding, Users of the Computer. See, i have to find out the User which is currently login with the System through C#.NET How i am getting to this? Please if u have a solution then reply this.
The easiest way is to use Environment.UserName But if you logged in in a domain server, then you must use this one to see the domain. For example MYDOMAIN\myusername
WindowsPrincipal wp = new WindowsPrincipal(WindowsIdentity.GetCurrent());
Console.WriteLine(wp.Identity.Name); -
HI Friends, I have a problem regarding, Users of the Computer. See, i have to find out the User which is currently login with the System through C#.NET How i am getting to this? Please if u have a solution then reply this.