Link to home
Start Free TrialLog in
Avatar of bthomasian
bthomasian

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of carl_legere
carl_legere

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of carl_legere
carl_legere

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
Avatar of bthomasian

ASKER

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
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!
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.
example to run IE:
program path and filename = C:\Program Files\Internet Explorer\iexplore.exe
start in the folder = C:\Program Files\Internet Explorer
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.
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
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"