Help: Unsuccessful getting Windows Login Name RRS feed

  • Question

  • User-413967383 posted
    I want to retrieve the network user login id in an INTRANET environment. Is this possible? If that is not possible can I retrieve the computer name the network user is logged on to? We use Active Directory.
    Friday, March 17, 2006 12:19 PM

All replies

  • User582283942 posted
    gets the user that is logged.

    Friday, March 17, 2006 12:57 PM
  • User1354132231 posted
    If you are in an ASP.NET application, you must be using Integrated Windows Authentication with Anonymous access denied.  From there, the user's name is available as Context.User.Identity.Name

    Getting the computer name of the user requires using WMI most likely and would not work well with web apps.

    Friday, March 17, 2006 1:01 PM