Sign in with
Sign up | Sign in
Your question

logon script only for terminal server sessions windows 200..

Last response: in Windows 2000/NT
Share
Anonymous
December 17, 2004 8:58:33 PM

Archived from groups: microsoft.public.windowsnt.terminalserver.client (More info?)

Hey,

I have the following problem:
a client of us has a windows 2003 server with terminal server. They logon to
the domain with there client pc's and with the same account they logon to
a terminal server session.
I would like to run an script ex. "ts.cmd" each time a user logs on to a
terminal server session. the problem is "where do i define this?"
if i put it in the user profile tab of the user account it's also excecuted
when they logon to the domain on there local pc's but it isn't supposed to.


So i am looking for an option to define a logon script just for terminal
server sessions!!

Help

greetings
Ruben
Anonymous
December 17, 2004 10:01:27 PM

Archived from groups: microsoft.public.windowsnt.terminalserver.client (More info?)

Yo have 2 solutions:

1) At the script
if %SESSIONNAME% == Console GOTO ModeConsole

REM terminal mode
Your Script
exit
:ModeConsole
REM Console mode
exit

2) Usind Domain or Local Policy. For example, using local Policy at the
Terminal Server:

"Local Computer Policy - User Configuration - Windows Settings - Scripts
(Logon/Logoff).

Bye.


"Ruben.wyns" <alicecottage@pandora.be> wrote in message
news:D 7Fwd.2920$IO2.260218@phobos.telenet-ops.be...
> Hey,
>
> I have the following problem:
> a client of us has a windows 2003 server with terminal server. They logon
to
> the domain with there client pc's and with the same account they logon to
> a terminal server session.
> I would like to run an script ex. "ts.cmd" each time a user logs on to a
> terminal server session. the problem is "where do i define this?"
> if i put it in the user profile tab of the user account it's also
excecuted
> when they logon to the domain on there local pc's but it isn't supposed
to.
>
>
> So i am looking for an option to define a logon script just for terminal
> server sessions!!
>
> Help
>
> greetings
> Ruben
>
>
>
>
>
!