I think in ASP it is: <%=System.login%>
That should output something like domain\username then you can use instr(system.login,"\") to get domain name. But its been a while since I did that. I could be wrong -----Original Message----- From: Reed Powell [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 13, 2002 9:37 PM To: CF-Talk Subject: OT: VBscript problem getting user information What little hair I have is going fast. Below is a piece of VBscript I copied off of the MS site, but it dies with errors relating to the WSCRIPT object. All I want to do is to get the user's authenticated domain and username. When it finally works, I'll put that info into a couple of hidden form fields so that the server can see who the user is. Cannot use the CGI header vars because the proxy server is stripping them off before they get to my CF server. I'm not much of a VBscript guy, so any help is appreciated. thanks -reed <script language="VBScript"> Set WshNetwork = WScript.CreateObject("WScript.Network") document.write "Domain = " & WshNetwork.UserDomain document.write "User Name = " & WshNetwork.UserName </script> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

