Solved

Launch Program in background When User Initiates a Remote APP Session

Posted on 2014-03-26
5
1,052 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

695 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