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.
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.