Page 1 of 1 1
Topic Options
#181928 - 2007-10-25 12:28 PM Logon script for Windows 2000 terminal server
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
Hi all.

Im looking for some help to make a logon script to my terminal server.
My problem is that when i logon to my terminal server, i need to get the NETBIOS name from the local computer, ill logon to the terminal server from.
I know the command @WKSTA, but that will just give me the name from the terminal server and not from the local computer.

I need this local conputer name to handel my printer, så that i kan tjek where they are located physical.

Hope you guys can help me!

Top
#181929 - 2007-10-25 12:36 PM Re: Logon script for Windows 2000 terminal server [Re: asco]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
On a terminal session the environment variable %cleintname% this will hold the name of the system the user is working on at home or wherever.
You can use environment variables in a kix script. You might need to use

 Quote:

EXPANDENVIRONMENTVARS ("string")
Expands any environment variables inside a string to the corresponding plain text value


but a test will tell you if it is needed.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#181930 - 2007-10-25 12:59 PM Re: Logon script for Windows 2000 terminal server [Re: Mart]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
 Originally Posted By: Mart
On a terminal session the environment variable %cleintname% this will hold the name of the system the user is working on at home or wherever.

That only works if your Terminal Server version is dyslexic - on the standard versions, the environment variable is "%CLIENTNAME%". ;\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#181931 - 2007-10-25 01:21 PM Re: Logon script for Windows 2000 terminal server [Re: Glenn Barnas]
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
thanks for the help, it works!

Edited by asco (2007-10-25 01:21 PM)

Top
#181936 - 2007-10-25 01:53 PM Re: Logon script for Windows 2000 terminal server [Re: Glenn Barnas]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
 Originally Posted By: Glenn Barnas
[quote=Mart]
....
That only works if your Terminal Server version is dyslexic - on the standard versions, the environment variable is "%CLIENTNAME%". ;\)

Glenn


I’ll blame my keyboard for not writing what I want to write.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#181938 - 2007-10-25 01:57 PM Re: Logon script for Windows 2000 terminal server [Re: Mart]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Don't ya just hate when your electronic hardware interferes with your biological hardware? Almost as bad as when Microsoft's "Intelli-non-sense" (r)(c)(tm)(rs) tries to think for you! \:D

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

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

Generated in 0.174 seconds in which 0.143 seconds were spent on a total of 13 queries. Zlib compression enabled.

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