
Getting NT User Name in VBScript
You can't get the username server side unless you use authentication (anything but anonymous) on the
site. In that case Request.ServerVariables("AUTH_USER") and also "LOGON_USER" will give you this
information...
ServerVariables
http://msdn.microsoft.com/library/psdk/iisref/vbob5vsj.htm
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> I have seen this example (& similar ones) posted here several times:
> Set oNet = CreateObject("WScript.Network")
> name=oNet.username
> Will this only work on an NT client PC? I get errors trying to test this
> using Win98. Also, the clients will not be logged into the server where the
> ASP application resides. Will this vbscirpt code still work in that
> instance? Is this a client-side object?
> Thanks very much!
> --
> David Knight
> RoundTable Technology Solutions