Link to home
Start Free TrialLog in
Avatar of Seven price
Seven priceFlag for United States of America

asked on

The USERname environment variable

yes I can retrieve the computer signin username if the file exist on my computer, but if I put this code on another server it will only retrieve the server username if logged in.  I want to to be able to retrieve the username on the client side of anyone computer to display on a webpage, this is for intranet use.    

       <%
Response.Write("The USERname environment variable is : " & Environment.GetEnvironmentVariable("USERNAME"))
%>
Avatar of spprivate
spprivate
Flag of United States of America image

Enable NT Authentication in IIS instead of anonymous access
Avatar of Seven price

ASKER

Ok but does the computer requires restart?

the value still comes up null
I am trying to catch the client side because like i said it works on the main computer i am on but not on the living server. what do you think./?
ASKER CERTIFIED SOLUTION
Avatar of spprivate
spprivate
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok that already happen but I do not want everyone to login this cannot happen dynamically. if not if everyone put a username and password. do they have to do this everytime or just once.