Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to retrieve a CPU's network login username? Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 27-Feb-15 15:57pm    
What is "CPU's network"? :-)
If you wanted to retrieve any login name of any network host, who told you it's possible? Don't you think it would be quite unsafe?
—SA
s yu 2-Mar-15 7:05am    
SA: I agree your point. My Group Leader asked to it. His idea is to check / retrieve the network login username. Thanks for your point.
s yu 2-Mar-15 8:32am    
SA: Referring to some threads, it is possible to find the userId by checking if there is the folder \userId_admin\ in c:\Users\.
s yu 3-Mar-15 7:04am    
SA: See this piece of code:
HttpContext httpContext = HttpContext.Current;
txtUser.Text = httpContext.User.Identity.Name.ToUpper();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900