?
Solved

The USERname environment variable

Posted on 2009-07-16
5
Medium Priority
?
218 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

Stack Overflow Podcast - Frustrating Miracles

In this podcast, Stack Overflow interviewed Linux Academy CEO/Founder, Anthony James, and got his developer story!

"Follow your passion, be prepared to work hard and sacrifice, and, above all, don't let anyone limit your dreams."  - Donovan Bailey

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

741 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