Getenv("username") ??

Results 1 to 2 of 2

Thread: Getenv("username") ??

  1. #1
    Lasher Guest

    Default Getenv("username") ??

    is there a function in VBscript like the one above so i can get the username that is logged in on the machine that is using my script?

  2. #2
    Brak & Chumly Guest

    Default RE: Getenv(

    We used NT challenge/reponse to take advantange of NT security within our site, which forced a user login to enter site. Here is a way to grab that user login using server variables:<BR><BR>&#060;%&#039Gets the authenticated login name from the browser.<BR>strAuthUser = Request.ServerVariables ("Logon_User")<BR>%&#062;<BR><BR>Here is an example of putting the variable in HTML.<BR><BR>&#060;INPUT style="display:none" id=txtUserName name=txtUserName value="&#060;%= Trim(UCase(strAuthUser)) %&#062;"&#062;

Posting Permissions

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