Page 1 of 1 1
Topic Options
#141804 - 2005-06-16 12:51 PM Citrix
Maik Offline
Getting the hang of it

Registered: 2003-01-14
Posts: 87
Hello,
I am looking for a script that detrmines if the user login happened to a citrix terminal server.

Is there any possibility to find this out?

Kind regards
Mike

Top
#141805 - 2005-06-16 01:22 PM Re: Citrix
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Yes.

Search this board for lots of examples - look in the FAQ forum for specific Citrix / Terminal Server help.

If you want to know whether the user is in an ICA session, the easiest test is to check the %CLIENTNAME% environment variable.

Top
#141806 - 2005-06-16 02:11 PM Re: Citrix
Maik Offline
Getting the hang of it

Registered: 2003-01-14
Posts: 87
Richard,
can you be mor specific? I didn't found anything in the FAQ with this topic. Maybe I am wrong...

What value will be in the %CLIENTNAME% variable?

Kind regards
Maik

Top
#141807 - 2005-06-16 02:36 PM Re: Citrix
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

What value will be in the %CLIENTNAME% variable?




The ICA thin client name.

If it's not an ICA (or terminal server) client this variable is not set.

Top
#141808 - 2005-06-16 03:04 PM Re: Citrix
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Look in the FAQ again. I know it's there cuz I wrote it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#141809 - 2005-06-16 07:13 PM Re: Citrix
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
My XPSP2 box says %clientnam% = console when I’m not in a terminal session so it is set but not the same as @wksta. When opening a terminal session to our corporate terminal server (MS Terminal server no Citrix) %clientname% is the same as my comp's name (on the term server local it is still console).

So this would do:

Code:

$ComputerName = "%computername%

If @wkstat = $ComputerName
?"No terminal client"
Else
?"Terminal client"
EndIf



Edited by Mart (2005-06-16 07:19 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#141810 - 2005-06-16 07:18 PM Re: Citrix
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
That is because XP has RDP support which is also explained in the FAQ.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#141811 - 2005-06-16 07:20 PM Re: Citrix
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Oops... Should have known that.
Altered the script above a bit. Just a quick and dirty way to find if you are on a terminal server or not.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#141812 - 2005-06-16 09:42 PM Re: Citrix
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Obviously it is untested code cuz there is a missing quote and @WkStaT does not exist. Anyway, there is fully tested code posted in the FAQ.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#141813 - 2005-07-08 03:38 PM Re: Citrix
NKK Offline
Fresh Scripter

Registered: 2003-03-17
Posts: 37
Loc: Marshall Texas
When you say look in the FAQ - I see only the tips on how to use the site. Where are other FAQs?
Top
#141814 - 2005-07-08 03:40 PM Re: Citrix
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
The first Forum in the main Index page ... or just follow this link
_________________________



Top
#141815 - 2005-07-08 03:40 PM Re: Citrix
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Not the UBB FAQs, the KiXtart FAQ forum.
http://www.kixtart.org/ubbthreads/postlist.php?Cat=0&Board=UBB10
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 1336 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

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

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