Jump to content

start a program on logon and exit when logoff


Recommended Posts

Guest MarthaRoca
Posted

Hello,

 

We need start a program when the user of TS logon and close (logout) the

conection when close the aplication.

 

Can I do that in TS configuration or need a VB script?

some link about?

 

Thanks a lot.

 

Greetings.

  • Replies 2
  • Created
  • Last Reply
Guest siqdiz@gmail.com
Posted

Re: start a program on logon and exit when logoff

 

On 10 okt, 23:57, MarthaRoca <MarthaR...@discussions.microsoft.com>

wrote:

> Hello,

>

> We need start a program when the user of TS logon and close (logout) the

> conection when close the aplication.

>

> Can I do that in TS configuration or need a VB script?

> some link about?

>

> Thanks a lot.

>

> Greetings.

 

Hi there,

 

You can set this up in a GPO located here: User Configuration

\Administrative Templates\System\Logon / Logoff. Here you can run

scripts at logon / logoff.

 

 

Hope this helps,

 

Oscar Disch

Guest Soo Kuan Teo [MSFT]
Posted

Re: start a program on logon and exit when logoff

 

You can try with "Initial Program" properties to see if it works for you:

open Terminal Services Configurations(tscc.msc)->RDP-Tcp->Environment tab,

Initial Program,

check "start the following programs" radio

fill in the Program path and Start in (folder) text box.

 

Thanks

Soo Kuan

 

 

 

--

This posting is provided "AS IS" with no warranties, and confers no rights.

 

"MarthaRoca" <MarthaRoca@discussions.microsoft.com> wrote in message

news:7E4349CF-0C69-42AD-9BCB-69EC784483E3@microsoft.com...

> Hello,

>

> We need start a program when the user of TS logon and close (logout) the

> conection when close the aplication.

>

> Can I do that in TS configuration or need a VB script?

> some link about?

>

> Thanks a lot.

>

> Greetings.


×
×
  • Create New...