Solved

Launch Program in background When User Initiates a Remote APP Session

Posted on 2014-03-26
5
888 Views
Last Modified: 2014-04-02
I have a small in-house developed utility that I need to run when a user launches their Remote APP from a Windows 2008 R2 Terminal Server. The utility needs to run in the background and no console/user interaction is required. I threw the shortcut in C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup on the server, but when the user launches their Remote APP, nothing happens.

I need to avoid using launch up parameters/script based on the user account properties in AD as the utility just needs to run on the server with the remote app. The user logs into their local computer and other resources so if i do a global script etc this would cause issues when user logs on other systems.

Any thoughts , ideas, suggestion on how I can accomplish this.
I created a service out of this, but this was not successful due to permissions issue.

Thank you.
0
Comment
Question by:z969307
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:Jaroslav Mraz
Comment Utility
Hi,

yes because user is not starting full desktop mode the startup folder is ignored.

You can do a simple thing make BAT file and point it as RemoteApp so when user start up it will start BAT file that run your app and then it will run normal requested APP. Or change your utility to do this and point remote app on your utility. You can rename it in properties and change ICON like your original app so user will have no idea.
0
 

Author Comment

by:z969307
Comment Utility
just so i understand correctly...
you are saying just publish it out as remote app and have the user start it, right?

It did occur to me, I'll reserve this as a last option. I have to push this out to almost 2 dozen users and servers, it would be great if i can have an option where this runs when the user logs in and stops when the user logs out.

Thanks you
0
 
LVL 15

Expert Comment

by:Jaroslav Mraz
Comment Utility
I sugest to run it wit RemoteApp by script so when you click on APP you want it first run your app to background and then your APP run REQUESTED APP.

IN BAT SCRIPT LIKE

RUN YOUR SCRIPT
RUN REQUESTEDAPP.EXE

for automatic stop you can setup RDS server to END DISCONECTED session after 1min. So if user exit app server will automatically logout him after one minute after
0
 

Accepted Solution

by:
z969307 earned 0 total points
Comment Utility
Thanks for your suggestion Jaroslav, but we don't use to be interacting or launching or give users the responsibility of making sure they start it, it is bound to happen that some users will forget to start it.

I was able to come up with a solution, I setup a scheduled task to start it up everyday at the beginning of the day and a task kill to shut it down at the end of the day, so far it has been working well.
0
 

Author Closing Comment

by:z969307
Comment Utility
I was able to figure out the solution.
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Local Printing Using Remote Desktop Windows 7 sometimes has issues with printing to a local printer using a Remote Desktop Connection (RDC). The 1st step is to verify that printers are checked on the Local Resources tab of the Remote Desktop C…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now