All Forums >> [Scripting] >> WSH & Client Side VBScript >> Obtaining win/nt logon userid in vbscript Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 16
Score: 0
Joined: 6/4/2001
From: USA
Status: offline
Hello all, any ideas on how to get the logon userid using vbscript?? I'm able to do this in vb but i wonder if vbscript allow me to do this... I need this to filter users based on logon userid... i don't have an IIS server and ASP.
Posts: 25
Score: 0
Joined: 6/4/2001
From: USA
Status: offline
Are you trying to do this on a web page, ie, on the client. If so, then good luck, I can't help you. I think this is a security feature.
If you were using ASP, you could look at Request.ServerVariables("REMOTE_USER") to get the user's login name, whatever he logged into your site with, anyway. Note that you can do this only on the server.