Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Launch Program in background When User Initiates a Remote APP Session

Posted on 2014-03-26
5
Medium Priority
?
1,197 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

596 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