Solved

The USERname environment variable

Posted on 2009-07-16
5
212 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:sevensnake77
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:spprivate
Comment Utility
Enable NT Authentication in IIS instead of anonymous access
0
 
LVL 9

Author Comment

by:sevensnake77
Comment Utility
Ok but does the computer requires restart?

the value still comes up null
0
 
LVL 9

Author Comment

by:sevensnake77
Comment Utility
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 500 total points
Comment Utility
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:sevensnake77
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now