Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 488
  • Last Modified:

How to set RDC to logout when an application quits

I would like to set RDC to quit when a user exits the application that automatically opens once then run my RDC script. How can I do this? There are options for starting apps when RDC starts, but nothing on ending RDC when an application is stopped / quit.
0
bthomasian
Asked:
bthomasian
  • 5
  • 5
1 Solution
 
carl_legereCommented:
my method for doing this involves setting the MSTSC client to run just the single program, and saving the rdp file.  When the .rdp file is run it connects to the server, you authenticate if necessary, and then it starts the program (this is great for Peachtree / Quickbooks, or perhaps IE on a kiosk)  when the program is closed, the terminal session closes properly with it.
0
 
carl_legereCommented:
be sure to do with the latest RDP client, you can download them from MS.
go to the programs tab, start the following program, fill in both prompts and save it on the general tab.  This RDP file is portable
0
 
bthomasianAuthor Commented:
Yup, I know how to set up applications on startup, in this case I just added it to the Startup Items menu, I can do that this was as well, same thing, however, what I am looking to do is have RDC logout the user once they close this application so they do not remain logged in. I don't have enough Terminal Services licenses to buy them for everyone and I shouldn't have to. Even if I did buy enough licences, I don't want people accidently chooseing to Restart the file server when trying to logout.

Thanks for the feedback
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
bthomasianAuthor Commented:
Oh wait, I just read your first post, so if an application is set to open it from that programs tab then it will automatcially close RDC if they close it as well... sorry for the pre-mature responce, I'll give that a try!
0
 
bthomasianAuthor Commented:
Thanks for the reply, here is my problem with doing it the way you suggested... when I do I get an error message because the application isn't an application at all but actully is a shortcut. This thing is frustrating, I keep bumping into brick walls.
0
 
carl_legereCommented:
example to run IE:
program path and filename = C:\Program Files\Internet Explorer\iexplore.exe
start in the folder = C:\Program Files\Internet Explorer
0
 
bthomasianAuthor Commented:
I tried this and I get this error:

The system cannot find the file specified.
The initial program cannot be started: outlook:\\public%20folders\all%20public%20folders\Public%20Contacts
Please consult help for more information.


Basically I created a shortcut that works when I double click it in the dekstop, but when I referance the code like this or referance the shortcut I get the above error message. Any other ideas around this? I even tried creating a batch file and added the link here and the batch file wasn't successful at opening it either.
0
 
carl_legereCommented:
put double quotes around it and put in spaces
"outlook:\\public folders\all public folders\Public Contacts"

it may infact be impossoble to do this with oulook URL's
0
 
bthomasianAuthor Commented:
Here was the correct syntax that worked... thanks for all the help and effort! I created a batch file to run this from the "c:\Program Files\Micrsoft Office\Office11" folder

outlook.exe /select "outlook:\Public Folders\All Public Folders\Venrock MOUs"
0
 
carl_legereCommented:
kewl
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now