Solved

Open/Connect to a [running] schduled task via an RDP session

Posted on 2008-06-26
12
385 Views
Last Modified: 2013-11-21
Hi.

I've an application running on a Windows 2003 server  that is started by the task scheduler. So when the app is started, it's running on the console.

Is there a way, via RDP (from an XP w/s) to open/connect/monitor the app once I'm on the server? The app itself is a GUI, and whilst I can see it running via the Terminal Services Manager, I haven't been able to find a way to view/monitor the app.

I use the same login ID always (i.e. I use the same admin account when setting up the task and when I RDP).

Additionally I've tried mstsc.exe /console but I was continually being asked for the installation disks.

If it's at all possible, I'd be very greatful for any advice.

Thanks,
Scott.
0
Comment
Question by:oliversk
  • 4
  • 3
  • 3
12 Comments
 
LVL 77

Expert Comment

by:Rob Williams
ID: 21874182
Is the task actually running in the console session or just as  as service? If the session is open, if you connect with the same user name and use the "mstsc  /console   " option you should take over that session. The "being asked for the installation disks" is a different issue. Not sure why it is asking but should work fine.
0
 
LVL 6

Expert Comment

by:rehanahmeds
ID: 21875308
So you dont know where that application is located on server?? sorry if i m wrong i think i didnt get what you are trying to ask
0
 

Author Comment

by:oliversk
ID: 21875455
Hi.

It's now running as a service (RDP TCP), as through Terminal Services Manager I was able to connect to the session it was running on.

I'm able to now see the concerned app in the task manager under the processes tab, but I still can't actually view/do anything with it.

Thanks.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 77

Expert Comment

by:Rob Williams
ID: 21877607
If it is running as a service, as most applications do on a server, you cannot 'see' anything logged on to the console or elsewhere.
0
 
LVL 6

Expert Comment

by:rehanahmeds
ID: 21879935
what program is it? google it to check if its an application or just a process of a service running in background... who is running th process i mean username in front of it is it a username or  SYSTEM...
0
 

Author Comment

by:oliversk
ID: 21881804
It's an application we built ourselves, with a GUI, that captures real-time data from various sources which it stores in a SQL server.

So, through task scheduler using our admin account, we've set the app to start everyday. It does this fine. What we'd like to do is be able to RDP to the server (this is our only route onto this server) with the same admin account, and then watch the app's GUI (basically be able to interact with it).

Once I've RDP'd onto the box (same admin account), I can't see the app running in either the Applications or Proceses tabs in TaskManager. However, I can see it when I open Terminal Services Manager, click on the Processes tab, and it's there. Terminal Services Manager shows the app/process is running with the same admin account that I'd RDP'd with. I'd just need to know if it's possible to interact with the app that was started automatically with the Task Scheduler.
0
 
LVL 6

Expert Comment

by:rehanahmeds
ID: 21882452
It depends on how the software was developed, developers of your company who created this software will know how to interact with the software.

Other then that, if the application was installed on the server then you can check the installation directory of the software, may be you find something over there or in its help file if there's any.

or in Application tab right click and try clicking Switch To or Bring To Front and see if you something comes up.

If you cant find where it is goto Task Schedueler goto its properties it will have the path of the program where it is located.
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 21882838
An application started as a service runs in the "background" and stays that way. In order to "interact with it", you would have to manually start it as the user, or leave the computer with a user logged in an run it as a scheduled task (not as a service), but then there is the risk of someone logging the user off and it would then not run.
0
 

Author Comment

by:oliversk
ID: 21883300
Hi.

rehanahmeds, we developed the app, so we know how to interact with it. We need to capture this data everyday, so to make sure we don't miss anything we schedule the start.

robwill, you're closest to the actual issue. We already use scheduled tasks (from the control panel) to start it. Afaik that doesn't give the option of starting as a service or a task?

0
 
LVL 77

Accepted Solution

by:
Rob Williams earned 250 total points
ID: 21883844
The problem is we are all usually fighting to get apps to run as tasks rather than as a user. Forcing the opposite is not something we are accustomed to.
Are you sure you want to do that. If it was running for example and you logoff you would halt the application and basically 'crash' it. I thing your GUI needs to be re-written as a monitoring tool that can be started as a needed and independent of the service/application.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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