logon script

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I am in the process of setting up a TS server for a single application -
Project 2003
Users are using their AD usernames and passwords to log into the TS.

We have logon scripts in place on the AD for normal windows logon. Is there
a way of not running that same script for the TS logon as the script copies
files, hence it's quite slow.

We also use roaming profiles for normal logo. I know you cn specify a
different profile in the TS tab of AD, but I would rather if I didn't use a
roaming profile for TS at all

Any thoughts would be much appreciated.

Thanks in Advance
 
You can check in your logon script if the user is logging in on a
normal client or the TS, by checking the value of the environment
variable %SESSIONNAME%
In a TS session, it has a value like this:
SESSIONNAME=RDP-Tcp#3

On a client, it has this value:
SESSIONNAME=Console

So your logon script could look something like this:

IF %SESSIONNAME%==Console goto client_logon
REM ** Not a normal client logon, so don't execute the logon script
exit

:client_logon
REM ** Normal client logon commands here

_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___
 
You can also use the %computername% variable, if you don't have many TS
servers. This will stop the file copy for everyone on that server,
including admins on the console.

As for the TS profile, if you really don't want a genuine roaming TS
profile, point it to a local location (C:\TSProfile\%username%) etc. This
still creates the profile, but it never moves from the server.
 
Back
Top