Page 1 of 1 1
Topic Options
#71472 - 2002-11-07 03:10 PM Windows 2000 Server with Terminal Services installed.
Koen van der Aa Offline
Fresh Scripter

Registered: 2002-07-13
Posts: 7
Hello,

How can I check if a Windows 2000 server, Terminal services has installed.

IF @Productsuite & 16 ? "Terminal Server" Endif
Doesn't work.

Thanx.

Top
#71473 - 2002-11-07 03:19 PM Re: Windows 2000 Server with Terminal Services installed.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If you do a search on the words terminal server you will find a lot.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71474 - 2002-11-07 03:28 PM Re: Windows 2000 Server with Terminal Services installed.
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
you should anyway call :

code:
 if @productsuite = 16
"Terminal Server" ?
endif

J.
_________________________



Top
#71475 - 2002-11-07 03:29 PM Re: Windows 2000 Server with Terminal Services installed.
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
What is @PRODUCTSUITE returning?
_________________________
There are two types of vessels, submarines and targets.

Top
#71476 - 2002-11-07 03:47 PM Re: Windows 2000 Server with Terminal Services installed.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
jpols,
You need to use the & as the macro returns a bitwise value. This has been covered many times over.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71477 - 2002-11-07 04:05 PM Re: Windows 2000 Server with Terminal Services installed.
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
is it ?

Didn't knew as never used it before , Thanx !
_________________________



Top
#71478 - 2002-11-07 09:40 PM Re: Windows 2000 Server with Terminal Services installed.
Addict Offline
Getting the hang of it

Registered: 2002-08-22
Posts: 62
Loc: Ohio, US
code:
 
If @PRODUCTSUITE & 16 ;detects the Terminal Services session
? Color y+/r "Terminal Services Session detected - Aborting login script..."
Sleep 1
Exit
EndIf

Works for me....

Top
#71479 - 2002-11-08 02:43 AM Re: Windows 2000 Server with Terminal Services installed.
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, isn't that strange. I did some of my own testing and found that @ProductSuite returned a VarType() of 8 which is a string so Val() is needed to convert to integer.
code:
break on
"VarType is: "
VarType(@ProductSuite) ?

"@@ProductSuite is: "
@ProductSuite ?

if Val(@ProductSuite) & 16
"It is a Terminal Server" ?
endif

get $_



[ 08. November 2002, 03:53: Message edited by: LLigetfa ]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#71480 - 2002-11-08 02:59 AM Re: Windows 2000 Server with Terminal Services installed.
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Here is what I have been using:
code:
Function ProductSuite ($Product)
Dim $Product

select
case $Product = "None" $x=0
case $Product = "Small Business" $x=1
case $Product = "Enterprise" $x=2
case $Product = "BackOffice" $x=4
case $Product = "CommunicationServer" $x=8
case $Product = "Terminal Server" $x=16
case $Product = "Small Business (Restricted)" $x=32
case $Product = "Embedded NT" $x=64
case $Product = "DataCenter" $x=128
case $Product = "Single User Terminal Server" $x=256
case $Product = "Home Edition" $x=512
case $Product = "Blade Server" $x=1024
case 1 $RC=MessageBox ("Invalid parameter used in function ProductSuite ($Product)",48)
WriteLog("Invalid parameter used in function ProductSuite ($Product)")
endselect

$ProductSuite = $x & val(@ProductSuite)
Endfunction

if ProductSuite("Terminal Server") and not ProductSuite("Single User Terminal Server")
CallScript("$HomeDrive\CitrixMap.kix")
endif



[ 08. November 2002, 03:04: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.127 seconds in which 0.102 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