Home > Net >  How to obtain the client computer accounts in webform
How to obtain the client computer accounts in webform

Time:03-16

I debugging on your computer, use the Environment. The UserName, so I can get my computer login account, such as "zhang".
But when I published to the IIS, the other a computer server, can only access to the server account, also use this page to get less than other personnel information,
Using the environment is the company's local area network (LAN),
Searched to baidu, find a pile method results are invalid,
Please the teachers teach, in the hope that whoever opens on his computer, can access to his computer NT account, such as I open is "zhang", li si open is the "bill",
The following methods are invalid:
Page. Server. MachineName;
Page, the User Identity. The Name;
System.Net.Dns.GetHostName ();
System. The Environment. MachineName;
System. The Environment. The UserName;
  • Related