LoggedOnUser = Request.ServerVariables("AUTH_USER")
intLength = Len (LoggedOnUser)
For i = 1 to intLength
strChar = mid(LoggedOnUser,i,1)
if strChar = "\" then
LoggedOnDomain = left(LoggedOnUser,(i-1))
LoggedOnUser = right(LoggedOnUser,(intLength - i))
You also need to go into the site's properties in the IIS MMC and uncheck Allow Anonymous Access and check Windows NT Challenge/Response.
That's the only way I've been able to get an intranet site to pull the user's login ID.