Re: windows login info

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ray Costanzo [MVP] (my)
Date: 10/25/04


Date: Sun, 24 Oct 2004 22:44:24 -0400

That script is running under the context of the IUSR account, so what you
describe is expected. What you want to do is change your settings for the
page, directory, application, or site to use authentication so that visitors
to your site are authenticated.

http://www.aspfaq.com/show.asp?id=2046
I'd also post a link to a page on iisfaq.com, but I'm unable to load that
site at the moment. Search for "authentication methods" there though too
for more info.

Ray at home

"dave" <anonymus@yahoo.com> wrote in message
news:OcBS2AjuEHA.2624@TK2MSFTNGP11.phx.gbl...
Hi
I'm writing one asp page and developing application for intranet...
I just need to know when if anyone executes this scripts, i need to find out
his windows login information (only username on which they are currently
logged in)..
I tried below code but its giving me machine name instead of username..
<%
Dim X
set X = createobject("WSCRIPT.Network")
dim U
U=x.UserName
Response.write "Logged In User is: " & U
%>
Any help would be appreciated..
Thanx in advance...



Relevant Pages

  • Re: ADSI Problem
    ... Right I've got the script working now with my ASP applications by passing the ... If you are doing forms authentication using ADSI (which it sounds like you ... Restarting IIS usually gets it working again. ... Dim strUserName ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADSI Problem
    ... If you are doing forms authentication using ADSI (which it sounds like you ... Do you know how I can also the script to make it work all the time. ... Restarting IIS usually gets it working again. ... Dim strUserName ...
    (microsoft.public.windows.server.active_directory)
  • Re: Modifying AD User attribute
    ... Would you haapened to have a script to do the following: ... username in AD with username in the spreadsheet, ... Dim objRootDSE, strDNSDomain, strNetBIOSDomain ... ' Determine DNS domain name from RootDSE object. ...
    (microsoft.public.windows.server.scripting)
  • Re: ADSI Problem
    ... I have now managed to get this script working by having 2 ... If you are doing forms authentication using ADSI (which it sounds like ... Restarting IIS usually gets it working again. ... Dim strUserName ...
    (microsoft.public.windows.server.active_directory)
  • Re: MSTSC v6.0 issue
    ... box appear with 192.168.55.2\username instead of just username (as in the ... Try this VB Script. ... Dim objFSO, objFileCopy, objGuyFile ... Dim obj, strUser ...
    (microsoft.public.windows.terminal_services)