Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

The USERname environment variable

Posted on 2009-07-16
5
Medium Priority
?
222 Views
Last Modified: 2012-05-07
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"))
%>
0
Comment
Question by:Seven price
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:spprivate
ID: 24873051
Enable NT Authentication in IIS instead of anonymous access
0
 
LVL 9

Author Comment

by:Seven price
ID: 24873625
Ok but does the computer requires restart?

the value still comes up null
0
 
LVL 9

Author Comment

by:Seven price
ID: 24873661
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./?
0
 
LVL 15

Accepted Solution

by:
spprivate earned 2000 total points
ID: 24873679
Please post your code .Also the do an IIS Reset.Essentially there would be a pop up asking for user name &password when you enable this option
0
 
LVL 9

Author Comment

by:Seven price
ID: 24873756
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.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question