Getting a Network User ID

Results 1 to 2 of 2

Thread: Getting a Network User ID

  1. #1
    Join Date
    Dec 1969

    Default Getting a Network User ID

    Hello everyone, <BR>I am trying to grab everyones username from my network and preveiw it on my webpage and have yet to be successful, this is the code I am using: <BR><BR>&#060;%auser=Request.ServerVariables("REMO TE_USER") <BR>auser=UCASE(MID(auser,9))%&#062; <BR>

  2. #2
    Fun Guest

    Default RE: Getting a Network User ID

    Try this...<BR><BR>&#060;% <BR>Response.write("This page was accessed by: ") <BR><BR>strNTUSER = Request("LOGON_USER") <BR>strNTUSER = Replace(strNTUSER, "\", "/") &#039;Reverse the slashes. <BR>Set theUser = getObject("WinNT://" & strNTUSER,user) <BR>&#039;* THe above line actually gets the NT user info from the server. <BR>Response.write(theUser.fullname &" <BR>") <BR>Response.write(theUser.Description) <BR><BR>%&#062; <BR> <BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts