Task Scheduler & Running application in foreground....


  1. Posts : 3
    Win 7
       #1

    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 Computer


  2. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #2

    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 Computer


  3. Posts : 3
    Win 7
    Thread Starter
       #3

    Hi,

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

    Thanks,
      My Computer


  4. Posts : 22,814
    W 7 64-bit Ultimate
       #4

    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 Computer


  5. Posts : 3
    Win 7
    Thread Starter
       #5

    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 Computer


  6. Posts : 22,814
    W 7 64-bit Ultimate
       #6

    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 Computer


  7. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #7

    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)

    Dwarf said:
    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 Computer


  8. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #8

    subbu said:
    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 Computer


 

  Related Discussions
Our Sites
Site Links
About 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 12:10.
Find Us