Hey guys, we have a WinXP development computer that multiple people connect
to (only one at a time) via RDP. I was thinking I could use the
GETENV("CLIENTNAME") variable to see who is connected to it, but it seems to
return the last user & not the current one connected.

For eaxmple, if Bob connected to the computer, then logged off, when I
connect to it & look at the CLIENTNAME variable it still says "Bob" istead of
"Jerry".


Any ideas? Or is there another way I can get that info. Note we all connect
to it using the same user name.


Thanks,

Jerry

Re: GETENV("CLIENTNAME") by Rolf

Rolf
Tue Oct 02 06:52:42 PDT 2007


> Any ideas?

http://support.microsoft.com/kb/281981



Re: GETENV("CLIENTNAME") by Jerry

Jerry
Tue Oct 02 07:10:00 PDT 2007

Hi Rolf, I had come across that KB article, but I am only dealing with a XP
connecting to another XP, and from what I can tell that article relates to
Win Server 2003?

Regards,

Jerry

"Rolf Lystad" wrote:

>
> > Any ideas?
>
> http://support.microsoft.com/kb/281981
>
>
>

Re: GETENV("CLIENTNAME") by Cy

Cy
Sun Oct 07 08:02:24 PDT 2007

While it speaks specifically of Windows Server 2003 it actually applies to
RDP in general. This is covering how RDP handles that variable. If you
wish to know the workstation name, you would need to log off rather than
disconnect.

--
Cy Welch
Senior Programmer/Analyst
MetSYS Inc.
http://www.metsysinc.com

"Jerry" <Jerry@discussions.microsoft.com> wrote in message
news:1489DBD0-6449-4537-95A4-D01822462BF7@microsoft.com...
> Hi Rolf, I had come across that KB article, but I am only dealing with a
> XP
> connecting to another XP, and from what I can tell that article relates to
> Win Server 2003?
>
> Regards,
>
> Jerry
>
> "Rolf Lystad" wrote:
>
>>
>> > Any ideas?
>>
>> http://support.microsoft.com/kb/281981
>>
>>
>>

Re: GETENV("CLIENTNAME") by Paul

Paul
Sun Oct 07 11:14:52 PDT 2007

Does ID() help you?


"Jerry" <Jerry@discussions.microsoft.com> wrote in message
news:D43A9624-749F-4BF4-BD3E-09C50EDD9B5D@microsoft.com...
> Hey guys, we have a WinXP development computer that multiple people
> connect
> to (only one at a time) via RDP. I was thinking I could use the
> GETENV("CLIENTNAME") variable to see who is connected to it, but it seems
> to
> return the last user & not the current one connected.
>
> For eaxmple, if Bob connected to the computer, then logged off, when I
> connect to it & look at the CLIENTNAME variable it still says "Bob" istead
> of
> "Jerry".
>
>
> Any ideas? Or is there another way I can get that info. Note we all
> connect
> to it using the same user name.
>
>
> Thanks,
>
> Jerry



Re: GETENV("CLIENTNAME") by Jerry

Jerry
Tue Oct 09 13:09:07 PDT 2007

ID() seems to just return the computer's name & user, not the computer I'm
connecting from. (We all log in with the same user as well)


Thanks,

Jerry


"Paul Pedersen" wrote:

> Does ID() help you?
>
>
> "Jerry" <Jerry@discussions.microsoft.com> wrote in message
> news:D43A9624-749F-4BF4-BD3E-09C50EDD9B5D@microsoft.com...
> > Hey guys, we have a WinXP development computer that multiple people
> > connect
> > to (only one at a time) via RDP. I was thinking I could use the
> > GETENV("CLIENTNAME") variable to see who is connected to it, but it seems
> > to
> > return the last user & not the current one connected.
> >
> > For eaxmple, if Bob connected to the computer, then logged off, when I
> > connect to it & look at the CLIENTNAME variable it still says "Bob" istead
> > of
> > "Jerry".
> >
> >
> > Any ideas? Or is there another way I can get that info. Note we all
> > connect
> > to it using the same user name.
> >
> >
> > Thanks,
> >
> > Jerry
>
>
>

Re: GETENV("CLIENTNAME") by Jerry

Jerry
Tue Oct 09 13:49:04 PDT 2007

Hi Cy, looks like I would have to contact MS for this hotfix? we do log off
but that doesn't seem to change anything.

Anyways, it looks like I have come up with another solution for our program.
It wasn't as easy as just using the CLIENTNAME but it seems to work none the
less.


Thanks,

Jerry

"Cy Welch" wrote:

> While it speaks specifically of Windows Server 2003 it actually applies to
> RDP in general. This is covering how RDP handles that variable. If you
> wish to know the workstation name, you would need to log off rather than
> disconnect.
>
> --
> Cy Welch
> Senior Programmer/Analyst
> MetSYS Inc.
> http://www.metsysinc.com
>
> "Jerry" <Jerry@discussions.microsoft.com> wrote in message
> news:1489DBD0-6449-4537-95A4-D01822462BF7@microsoft.com...
> > Hi Rolf, I had come across that KB article, but I am only dealing with a
> > XP
> > connecting to another XP, and from what I can tell that article relates to
> > Win Server 2003?
> >
> > Regards,
> >
> > Jerry
> >
> > "Rolf Lystad" wrote:
> >
> >>
> >> > Any ideas?
> >>
> >> http://support.microsoft.com/kb/281981
> >>
> >>
> >>