How to get Windows username

0

I'm trying to display the name of company employees on an intranet portal. To use as a greeting, for example, Hello "So-and-so."

The way I got closer was through asp using the code below:

<%= HttpContext.Current.User.Identity.Name%>

But you only get the domain and the username like this: Domain \ 873059 which is the employee's RE, but I want you to get the name that appears in the start menu for example "Fulano da Silva".

    
asked by anonymous 11.10.2017 / 18:08

0 answers