Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Task Scheduler & Running application in foreground....

08 Feb 2010   #1
subbu

Win 7
 
 
Task Scheduler & Running application in foreground....

Hi,

My requirement is to start an application (UI based) in the foreground as soon as the PC boots (whether user is logged in or not). I added a task to the task scheduler & configured it to run under the same account as my foreground logon account.

I am seeing the task is scheduled but it is running in the background. Also observed that task manager is not showing the process unless I click on the button "Show processes from all users".

What is the reason for such a behavior and how can I achieve my requirement?

Thanks,
Subbu


My System SpecsSystem Spec
.
05 Jul 2010   #2
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Yes, what you can do is start the application as a service and make sure that it is allowed to interact with the user. That way the application will start if no one is logged on, and will display when a user logs on.
My System SpecsSystem Spec
06 Jul 2010   #3
subbu

Win 7
 
 

Hi,

What can be done to make sure that it is allowed to interact with the user?

Thanks,
My System SpecsSystem Spec
.

06 Jul 2010   #4
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Hello subbu, welcome to Seven Forums!



Have a look at the tutorial at the link below to see if that method will do what you need; be sure to keep us informed.


How to Change, Add, or Remove Startup Programs in Windows
My System SpecsSystem Spec
06 Jul 2010   #5
subbu

Win 7
 
 

Hi,

First of all thanks for the reply.

I saw the link. It talks about adding a program to system startup. i.e. starting a program after the user logs in.

But I am looking for a way to start a UI based app as soon as the PC boots even before the user logs in and should show up the UI as soon as the user logs in.

Thanks,
My System SpecsSystem Spec
06 Jul 2010   #6
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Have you had a good look at all the options under the "Triggers" and "Conditions" tabs in the Task Scheduler to see if you're setting all the parameters that need to be met for the program to run correctly? Have a look at the tutorial at the link below.


Task - Create to Run a Program at Startup and Log On
My System SpecsSystem Spec
06 Jul 2010   #7
Dwarf

Windows 8.1 Pro RTM x64
 
 

Have you considered the alternative method of doing this? By editing the registry.

The location(s) to modify are as follows:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
(you will need to open the registry editor with administrative credentials to modify this location - affects all users)

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
(you can edit this from any account - affects the current user only)

Quote   Quote: Originally Posted by Dwarf
In the right-hand panel, right- click and choose New > String Value. Name it AutoLogOff (or whatever you want, this doesn't matter but it is helpful to have meaningful names). Next, right-click on the new entry and choose Modify... (alternatively, double-click it). Enter the following code (remember to include the spaces):

C:\Windows\system32\shutdown.exe /r /t 3630
Example taken from my posts in this thread: Solved Time usage control - Vista Forums

The parts to change are highlighted in RED.
My System SpecsSystem Spec
06 Jul 2010   #8
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by subbu View Post
Hi,

First of all thanks for the reply.

I saw the link. It talks about adding a program to system startup. i.e. starting a program after the user logs in.

But I am looking for a way to start a UI based app as soon as the PC boots even before the user logs in and should show up the UI as soon as the user logs in.

Thanks,
Again you can set the application to start as a service. That will do what you are wanting.

How To Create a User-Defined Service
My System SpecsSystem Spec
Reply

 Task Scheduler & Running application in foreground....




Thread Tools




Similar help and support threads
Thread Forum
task in task scheduler test running never completes?
I created a batch file. it works fine, opens command prompt runs the task, then it exits. I set the task up in task scheduler. There is a run button, when run it goes from ready to running and never stops... I can select end. The task simply takes 7 seconds when I run it as clicking on the batch...
General Discussion
Prevent a task in Task Scheduler from running
Hello to everyone, I'm getting so so frustrated by Yandex Browser (I'm too lazy right now to replace it with another browser) since it creates an update task without my consent. I tried everything, Yandex settings, deleteting the task, deleting the update.exe file, rinominating the update...
Performance & Maintenance
How do I get Task Scheduler to stop running a deleted Task
I've been searching for days trying to find how to fix this issue. It came about when a hard disk crashed without warning and I didn't have a current backup. My bad, but fortunately it wasn't the system disk so I've been able to recover from the disk just dying. During the recovery phase, I...
General Discussion
Task Scheduler: running skipped task when it shouldn't?
I have a secondary computer in the network, which is supposed to stay in sleep mode most of the time. I always wake it up when necessary and put it back to sleep when it is no longer needed. I don't want it to fall asleep by itself during the day, so I set the sleep time to "Never" in Power...
General Discussion
task scheduler not running missed task
When i set task scheduler to run a program it works. But if the pc is not on at the time it will not run unless task scheduler is opened. It is set to run as soon as poss after scheduled time and task scheduler itself starts and runs properly
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:57.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App