Solved

Launch Program in background When User Initiates a Remote APP Session

Posted on 2014-03-26
5
1,003 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:Jaroslav Mraz
ID: 39956946
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
ID: 39956961
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
ID: 39956986
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
ID: 39961703
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
ID: 39971725
I was able to figure out the solution.
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
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…

696 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