logon script

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
 
V

Vera Noest [MVP]

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 ___
 
M

MoiToo

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top