Hi, I have seen this topic come up many times but have never really
seen a concise answer to the problem. Basically what I have is an asp
page that is using ado to do some database queries. I have an
activity log table in my database that I would also like to update
when certain events are triggered on the webpage. In this activity
log I wanted to have the network username and the computer name of the
person that was using the webpage. I thought VBScript would be best
for this because it runs client-side but I have not found a solution
yet. Though this webpage will be running on my company's intranet, we
are a company of 6000 and I have absolutely NO control over the server
it will be running on. Any help would be awesome. Thanks!

-Jeremy

Re: username and computer name in vbscript/asp/java/wsh? by Bryan

Bryan
Tue Aug 26 11:51:22 CDT 2003

Request.ServerVariables

Use the RemoteHost and RemoteUser

"Jeremy" <okanok_man@hotmail.com> wrote in message
news:3a156897.0308260719.6fe5d257@posting.google.com...
> Hi, I have seen this topic come up many times but have never really
> seen a concise answer to the problem. Basically what I have is an asp
> page that is using ado to do some database queries. I have an
> activity log table in my database that I would also like to update
> when certain events are triggered on the webpage. In this activity
> log I wanted to have the network username and the computer name of the
> person that was using the webpage. I thought VBScript would be best
> for this because it runs client-side but I have not found a solution
> yet. Though this webpage will be running on my company's intranet, we
> are a company of 6000 and I have absolutely NO control over the server
> it will be running on. Any help would be awesome. Thanks!
>
> -Jeremy



Re: username and computer name in vbscript/asp/java/wsh? by okanok_man

okanok_man
Tue Aug 26 16:36:22 CDT 2003

Bryan, thanks for the quick reply, but I have tried server variables
and they do not work for me. Here are all of the ones that I tried:

Returns Nothing: <%=Request.ServerVariables("REMOTE_USER")%> <br>
Returns Nothing: <%=Request.ServerVariables("LOGON_USER")%> <br>
Returns IP: <%=Request.ServerVariables("REMOTE_HOST")%><br>
Returns IP: <%=Request.ServerVariables("REMOTE_ADDR")%><br>
Returns Nothing: <%=Request.ServerVariables("AUTH_USER")%><br>
Returns Nothing: <%=Request.ServerVariables("LOCAL_USER")%><br>
Returns IP: <%=Request.ServerVariables("LOCAL_ADDR")%><br>

I believe that there is a setting on IIS that will allow all of these
to work, but it also ends up compromising some security. And anyway, I
can't get within 50 feet of the webserver that this page is running
on. Any other ideas? Thanks

-Jeremy

"Bryan Martin" <spam@ahwayside.com> wrote in message news:<O77mJJ$aDHA.2016@TK2MSFTNGP10.phx.gbl>...
> Request.ServerVariables
>
> Use the RemoteHost and RemoteUser
>
> "Jeremy" <okanok_man@hotmail.com> wrote in message
> news:3a156897.0308260719.6fe5d257@posting.google.com...
> > Hi, I have seen this topic come up many times but have never really
> > seen a concise answer to the problem. Basically what I have is an asp
> > page that is using ado to do some database queries. I have an
> > activity log table in my database that I would also like to update
> > when certain events are triggered on the webpage. In this activity
> > log I wanted to have the network username and the computer name of the
> > person that was using the webpage. I thought VBScript would be best
> > for this because it runs client-side but I have not found a solution
> > yet. Though this webpage will be running on my company's intranet, we
> > are a company of 6000 and I have absolutely NO control over the server
> > it will be running on. Any help would be awesome. Thanks!
> >
> > -Jeremy

Re: username and computer name in vbscript/asp/java/wsh? by okanok_man

okanok_man
Wed Aug 27 10:12:52 CDT 2003

One idea I had was to create a COM object in Delphi or something and
force people to download it the first time they visit my page. This
COM object would the get the user's information and return it to my
database. Anyone have any ideas about this?

-Jeremy

okanok_man@hotmail.com (Jeremy) wrote in message news:<3a156897.0308261336.b361ea0@posting.google.com>...
> Bryan, thanks for the quick reply, but I have tried server variables
> and they do not work for me. Here are all of the ones that I tried:
>
> Returns Nothing: <%=Request.ServerVariables("REMOTE_USER")%> <br>
> Returns Nothing: <%=Request.ServerVariables("LOGON_USER")%> <br>
> Returns IP: <%=Request.ServerVariables("REMOTE_HOST")%><br>
> Returns IP: <%=Request.ServerVariables("REMOTE_ADDR")%><br>
> Returns Nothing: <%=Request.ServerVariables("AUTH_USER")%><br>
> Returns Nothing: <%=Request.ServerVariables("LOCAL_USER")%><br>
> Returns IP: <%=Request.ServerVariables("LOCAL_ADDR")%><br>
>
> I believe that there is a setting on IIS that will allow all of these
> to work, but it also ends up compromising some security. And anyway, I
> can't get within 50 feet of the webserver that this page is running
> on. Any other ideas? Thanks
>
> -Jeremy
>
> "Bryan Martin" <spam@ahwayside.com> wrote in message news:<O77mJJ$aDHA.2016@TK2MSFTNGP10.phx.gbl>...
> > Request.ServerVariables
> >
> > Use the RemoteHost and RemoteUser
> >
> > "Jeremy" <okanok_man@hotmail.com> wrote in message
> > news:3a156897.0308260719.6fe5d257@posting.google.com...
> > > Hi, I have seen this topic come up many times but have never really
> > > seen a concise answer to the problem. Basically what I have is an asp
> > > page that is using ado to do some database queries. I have an
> > > activity log table in my database that I would also like to update
> > > when certain events are triggered on the webpage. In this activity
> > > log I wanted to have the network username and the computer name of the
> > > person that was using the webpage. I thought VBScript would be best
> > > for this because it runs client-side but I have not found a solution
> > > yet. Though this webpage will be running on my company's intranet, we
> > > are a company of 6000 and I have absolutely NO control over the server
> > > it will be running on. Any help would be awesome. Thanks!
> > >
> > > -Jeremy

Re: username and computer name in vbscript/asp/java/wsh? by Gadget

Gadget
Thu Aug 28 00:23:12 CDT 2003


can I ask somebody who have a knowledge in vbscript and html? Btw i
have a simple problem... how can i join the vbscript code to the html
code so that my form in visual basic will run through the html code..
any one can help me. What I should do? can u give me some sample, a
basic sample for that?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Re: username and computer name in vbscript/asp/java/wsh? by Sean

Sean
Thu Aug 28 14:49:13 CDT 2003

If you have setup your website to use anonymous authentication then you're
right, server variables are of little use. If this web site is an internal
one hosted on IIS for use by employees with domain accounts then you can
disable anonymous access, enable integrated authentication, and those
variables will populate.

There's lots of potential problems with this system that might need working
out, but I've used it at several organizations for intranet-type sites and
it works fine.

K


"Jeremy" <okanok_man@hotmail.com> wrote in message
news:3a156897.0308261336.b361ea0@posting.google.com...
> Bryan, thanks for the quick reply, but I have tried server variables
> and they do not work for me. Here are all of the ones that I tried:
>
> Returns Nothing: <%=Request.ServerVariables("REMOTE_USER")%> <br>
> Returns Nothing: <%=Request.ServerVariables("LOGON_USER")%> <br>
> Returns IP: <%=Request.ServerVariables("REMOTE_HOST")%><br>
> Returns IP: <%=Request.ServerVariables("REMOTE_ADDR")%><br>
> Returns Nothing: <%=Request.ServerVariables("AUTH_USER")%><br>
> Returns Nothing: <%=Request.ServerVariables("LOCAL_USER")%><br>
> Returns IP: <%=Request.ServerVariables("LOCAL_ADDR")%><br>
>
> I believe that there is a setting on IIS that will allow all of these
> to work, but it also ends up compromising some security. And anyway, I
> can't get within 50 feet of the webserver that this page is running
> on. Any other ideas? Thanks
>
> -Jeremy
>
> "Bryan Martin" <spam@ahwayside.com> wrote in message
news:<O77mJJ$aDHA.2016@TK2MSFTNGP10.phx.gbl>...
> > Request.ServerVariables
> >
> > Use the RemoteHost and RemoteUser
> >
> > "Jeremy" <okanok_man@hotmail.com> wrote in message
> > news:3a156897.0308260719.6fe5d257@posting.google.com...
> > > Hi, I have seen this topic come up many times but have never really
> > > seen a concise answer to the problem. Basically what I have is an asp
> > > page that is using ado to do some database queries. I have an
> > > activity log table in my database that I would also like to update
> > > when certain events are triggered on the webpage. In this activity
> > > log I wanted to have the network username and the computer name of the
> > > person that was using the webpage. I thought VBScript would be best
> > > for this because it runs client-side but I have not found a solution
> > > yet. Though this webpage will be running on my company's intranet, we
> > > are a company of 6000 and I have absolutely NO control over the server
> > > it will be running on. Any help would be awesome. Thanks!
> > >
> > > -Jeremy



Re: username and computer name in vbscript/asp/java/wsh? by okanok_man

okanok_man
Fri Aug 29 12:08:24 CDT 2003

Thanks, I had a feeling that this was the only way I could accomplish
this. To accomplish this I think I need to work with my sys admin's a
little more. Thanks for the help!

-Jeremy


"Sean \(Kashi\) McGilloway" <noreplies@wscd.com> wrote in message news:<bilmcp$a4chk$1@ID-202586.news.uni-berlin.de>...
> If you have setup your website to use anonymous authentication then you're
> right, server variables are of little use. If this web site is an internal
> one hosted on IIS for use by employees with domain accounts then you can
> disable anonymous access, enable integrated authentication, and those
> variables will populate.
>
> There's lots of potential problems with this system that might need working
> out, but I've used it at several organizations for intranet-type sites and
> it works fine.
>
> K
>
>
> "Jeremy" <okanok_man@hotmail.com> wrote in message
> news:3a156897.0308261336.b361ea0@posting.google.com...
> > Bryan, thanks for the quick reply, but I have tried server variables
> > and they do not work for me. Here are all of the ones that I tried:
> >
> > Returns Nothing: <%=Request.ServerVariables("REMOTE_USER")%> <br>
> > Returns Nothing: <%=Request.ServerVariables("LOGON_USER")%> <br>
> > Returns IP: <%=Request.ServerVariables("REMOTE_HOST")%><br>
> > Returns IP: <%=Request.ServerVariables("REMOTE_ADDR")%><br>
> > Returns Nothing: <%=Request.ServerVariables("AUTH_USER")%><br>
> > Returns Nothing: <%=Request.ServerVariables("LOCAL_USER")%><br>
> > Returns IP: <%=Request.ServerVariables("LOCAL_ADDR")%><br>
> >
> > I believe that there is a setting on IIS that will allow all of these
> > to work, but it also ends up compromising some security. And anyway, I
> > can't get within 50 feet of the webserver that this page is running
> > on. Any other ideas? Thanks
> >
> > -Jeremy
> >
> > "Bryan Martin" <spam@ahwayside.com> wrote in message
> news:<O77mJJ$aDHA.2016@TK2MSFTNGP10.phx.gbl>...
> > > Request.ServerVariables
> > >
> > > Use the RemoteHost and RemoteUser
> > >
> > > "Jeremy" <okanok_man@hotmail.com> wrote in message
> > > news:3a156897.0308260719.6fe5d257@posting.google.com...
> > > > Hi, I have seen this topic come up many times but have never really
> > > > seen a concise answer to the problem. Basically what I have is an asp
> > > > page that is using ado to do some database queries. I have an
> > > > activity log table in my database that I would also like to update
> > > > when certain events are triggered on the webpage. In this activity
> > > > log I wanted to have the network username and the computer name of the
> > > > person that was using the webpage. I thought VBScript would be best
> > > > for this because it runs client-side but I have not found a solution
> > > > yet. Though this webpage will be running on my company's intranet, we
> > > > are a company of 6000 and I have absolutely NO control over the server
> > > > it will be running on. Any help would be awesome. Thanks!
> > > >
> > > > -Jeremy