logon script only for terminal server sessions windows 200..

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
1 answer Last reply
More about logon script terminal server sessions windows
  1. 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:d7Fwd.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
    >
    >
    >
    >
    >
Ask a new question

Read More

Windows Server 2003 Domain Terminal Server Windows