Forums

This topic is locked

Get NT username?

Posted 08 Nov 2002 09:31:03
1
has voted
08 Nov 2002 09:31:03 Henrik Sandeberg posted:
Im running ultradev and i have an nt4 iis4 server, its our intranetserver and i wonder if i can get the nt username and inserting it to a db?

Replies

Replied 08 Nov 2002 15:49:03
08 Nov 2002 15:49:03 Brent Colflesh replied:
Dear Smallbenet,
You can use VBScript to read the enviroment variables, ex:

www.winnetmag.com/Files/5379/Listing_02.txt

The one you want is:

%USERNAME%

Regards,
Brent

Replied 11 Nov 2002 10:30:04
11 Nov 2002 10:30:04 Henrik Sandeberg replied:
How do i run a VB script in the webpage, yes i can write ite down and so, but when i test it it show me just that teh WScript is not found, like object need?,, what to do?
Replied 22 Nov 2002 06:33:49
22 Nov 2002 06:33:49 Dave Blohm replied:
or even more easily you can just call a Request.ServerVariables("auth_user"

Doc
Rangewalk Digital Studios

Reply to this topic