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!

Get logged on user

Status
Not open for further replies.

mstie

IS-IT--Management
Jan 7, 2003
10
0
0
US
Is there a way in VBScript to grab the logged on user when the script is running on a server and the user is accessing remotely? I have an internal web site that users must authenticate to, but I need to be able to grab their username and pass it to an XML form.

I've tried WSH, which will work if the script is running locally, but since the script is running on the server, it fails with a "cannot create object 'wscript'" error. Is there a way to do this with ADSI perhaps?

I'm fairly new to VBScript and I'm not sure if this is even possible.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top