Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response write logon user

Status
Not open for further replies.

macluv22

Programmer
Feb 28, 2002
7
0
0
NL
Hi!

What's wrong with this code? I only get the user name for one time! I hope someone can help me. Thanks in advance.


<%
user = request.servervariables(&quot;LOGON_USER&quot;)
Response.Write (user)
%>

 
If you are using VBScript here's how u're gonna get the username:

Dim WSHNet

Set WSHNet = CreateObject(&quot;Wscript.Network&quot;)

MsgBox &quot;Username is: &quot;&WSHNet.UserName

Enjoy!!
 
Hi Aladdin,

I was wondering if you know how to get hold of the 'User Logon Name' from Active Directory? I need this since our 'User Logon Name (pre-Windows 2000)' is different. %username% gets me pre win2k name but i need the other for reference in outlook profile generation where our exchange5.5 alias & director names are in the same format as our new AD logon names.

Does this make sense? i kinda got a bit tongue/finger tied.

Cheers mate
Nick.Harrison@aventis.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top