I need to make users execute a script while connecting to a server via
Terminal Services from a TS client.

The script should run a program, wait till it terminates, and then run a
second program, keep it running and quit while the second program still
runs.

Is there any known issue in the above solution?

Can I just write down the .vbs file name in Active Directory Users and
Computer in the Environment tab under "start the following program at
logon"?

Is there any available documentation about running scripts on a TS Server?

Regards

Marius

Re: Running scripts when users logon via terminal services by Ray

Ray
Wed Dec 03 10:27:54 CST 2003

Sorry for my non-vbs answer. I can't help myself.

IF {%SESSIONNAME%} NEQ {} (
IF {%SESSIONNAME%} NEQ {Console} (
START /WAIT C:\yourprogram.exe
START C:\Yourotherprogram.exe
)
)

Ray at work


"Marius from Rome" <marius@domain1.local> wrote in message
news:OAyoJWXuDHA.2880@tk2msftngp13.phx.gbl...
> I need to make users execute a script while connecting to a server via
> Terminal Services from a TS client.
>
> The script should run a program, wait till it terminates, and then run a
> second program, keep it running and quit while the second program still
> runs.
>
> Is there any known issue in the above solution?
>
> Can I just write down the .vbs file name in Active Directory Users and
> Computer in the Environment tab under "start the following program at
> logon"?
>
> Is there any available documentation about running scripts on a TS Server?
>
> Regards
>
> Marius
>
>
>