Get Win NT UserName

Results 1 to 2 of 2

Thread: Get Win NT UserName

  1. #1
    Join Date
    Dec 1969

    Default Get Win NT UserName

    For an intranet app, I want to get the Windows NT/2000 username when the user launches the app, and procede accordingly. This way, the user will just launch the app, and not have to enter a username and/or password. Security is no concern here, but personalization is. Can I use the Win API 'GetUserName' function that I use in VB in an ASP page? If so, how?

  2. #2
    Join Date
    Dec 1969

    Default RE: Get Win NT UserName

    Turn off Anonymous access and turn on Windows Integrated Security (what was Challange/Response).<BR><BR>You can look into the servervariables AUTH_USER (I think) to find out their username.<BR><BR>If they have already logged into the domain that the webserver is in, they will not be prompted for a username.<BR><BR>-doug

Posting Permissions

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