Page 1 of 1 1
Topic Options
#124675 - 2004-08-09 06:17 PM Capturing IP Address of Terminal Server Client
Mike Pratt Offline
Fresh Scripter

Registered: 2003-10-17
Posts: 18
Loc: Maine
I have done some searching on how to capture an IP address from a client connecting to a W2K3 Terminal Server and can't seem to find anything on it...has anyone seen anything new on this? Or written a new script/UDF?

Thanks,
Mike

Top
#124676 - 2004-08-09 07:12 PM Re: Capturing IP Address of Terminal Server Client
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
There have been several threads about collecting client side data from a terminal server session.

This is one of the threads.

http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=117828

Read the search forma and it's settings carefully when searching.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#124677 - 2004-08-09 08:02 PM Re: Capturing IP Address of Terminal Server Client
Mike Pratt Offline
Fresh Scripter

Registered: 2003-10-17
Posts: 18
Loc: Maine
Unfortunately I'm not running Citrix and the clientdata.exe doesn't give me what I need for info...I can see the info I need in Terminal Server Manager on the server, I just don't know where to enumerate the info from or if there is a system variable available to pull info from...

Thanks,
Mike

Top
#124678 - 2004-08-09 08:29 PM Re: Capturing IP Address of Terminal Server Client
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not all the solutions provided require Citrix.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#124679 - 2004-08-09 09:03 PM Re: Capturing IP Address of Terminal Server Client
Mike Pratt Offline
Fresh Scripter

Registered: 2003-10-17
Posts: 18
Loc: Maine
I have downloaded and tried to run both ctxcinfo and clientnfo and they both are trying to run wfapi.dll, which I understand to be a Citrix .dll...
Top
#124680 - 2004-08-09 09:16 PM Re: Capturing IP Address of Terminal Server Client
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Then maybe you need to dig a little deeper.

Borrowing directly form the FAQ:
Quote:

WTSManager.dll does not require Citrix but does require that the DLL be registered.


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#124681 - 2004-08-09 10:26 PM Re: Capturing IP Address of Terminal Server Client
Mike Pratt Offline
Fresh Scripter

Registered: 2003-10-17
Posts: 18
Loc: Maine
Thanks for the info...I discovered the WMI Class that holds this info so I might try that avenue...is there an FAQ on how to integrate WMI with KIX?

Thanks,
Mike

Top
#124682 - 2004-08-10 08:27 PM Re: Capturing IP Address of Terminal Server Client
Mike Pratt Offline
Fresh Scripter

Registered: 2003-10-17
Posts: 18
Loc: Maine
I'm really close to getting this to work, but I need some help with KiX syntax...I was hoping you guys could help...I found software that runs as a VBScript that is only 2 lines and I'd like to incorporate it into my KiX script. I need to take the value that the VBScript spits out and incorporate it into my script...here is what I've got:

set oWts = CreateObject("WtsScript.WtsQuery")
WScript.Echo oWts.ClientIp

Instead of doing an echo, how could I take the value and create a variable?

Thanks for all the help!
Mike

Top
#124683 - 2004-08-10 08:34 PM Re: Capturing IP Address of Terminal Server Client
Mike Pratt Offline
Fresh Scripter

Registered: 2003-10-17
Posts: 18
Loc: Maine
I got it guys...thanks for your help...

$oWts = CreateObject("WtsScript.WtsQuery")
$clientip = $oWts.ClientIp

Mike

Top
#186969 - 2008-04-16 05:25 PM Re: Capturing IP Address of Terminal Server Client [Re: Mike Pratt]
aahl Offline
Just in Town

Registered: 2008-04-16
Posts: 1
After reading the posts in this thread, I think using WTSManager.dll will help me do what I need. Can anyone tell me where to get this file?
Thanks.

Top
#186980 - 2008-04-16 08:29 PM Re: Capturing IP Address of Terminal Server Client [Re: aahl]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
You can download it from my site.

wtsmanager.zip

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 84 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.062 seconds in which 0.024 seconds were spent on a total of 15 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org