Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect terminal server in login script

Status
Not open for further replies.

peterve

IS-IT--Management
Mar 19, 2000
1,348
NL
Hi,
How can I detect in the login script whether a user is
logging on onto a Win2K terminal server or not.
Is there some sort of environment variable set on a terminal server ??
In NT4, I used
if systemroot=="c:\wtsrv"

but my Windows 2000 server is installed in c:\winnt so this doesn't work anymore Any ideas ?

Thanks

Peter



Peter Van Eeckhoutte
peter.ve@itinera.be

 
try looking for a termserv specific file I know in termserv 4 that you can use
if exist %windir%\system32\chgusr.exe then

 
well, the %computername% refers to the server and
%clientname% refers to the client's computer name, I wonder if perhaps you can in some way check if the two are different in your login script?
some thing like:
if %computername% = %clientname% then....
else...

just a thought, I don't know.
Pritch.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top