Run any application as a Windows Service

How to Start your AlwaysUp Application "In Session" at Logon

Sidestep the dreaded Session 0 Isolation and ensure that your AlwaysUp application is visible when you log on

Typically, the easiest way to start a Windows program when you log on is to place a shortcut to the program in your Startup folder. This continues to work fine for regular applications, but with the advent of User Account Control (UAC) in Vista and Windows 7, administrative applications (like AlwaysUp) placed in the Startup folder will now throw up the intimidating UAC prompt, interrupting the smooth automatic starting of your application. Phooey!

Luckily we can use the Windows Task Scheduler to evade UAC and start your AlwaysUp application in the session, silently in the background when you log on. To do so:

  1. Start the Windows Task Scheduler by clicking on the Start button, typing in Taskschd.msc and hitting the Enter key:

    Start Task Scheduler

  2. Select Action > Create Basic Task... to open the Create Basic Task Wizard window.

    Create Basic Task

  3. In the Name field, enter the name for the new task. We have specified Start My AlwaysUp App at Login but you can specify almost anything you like.

    Create Basic Task Wizard: Name

    Click Next >

  4. Specify when the task should be started. Select When I log on.

    Create Basic Task Wizard: Trigger

    Click Next >

  5. Specify what the task should do. Leave the selection at the default, Start a program.

    Create Basic Task Wizard: Action

    Click Next >

  6. Next, we specify that we would like to run AlwaysUp (with special command line flags to restart your application in the session).

    • In the Program/script field, enter the full path to the AlwaysUp executable. By default, this is:

      "C:\Program Files (x86)\AlwaysUp\AlwaysUp.exe"

    • In the Add arguments (optional) field, enter:

      -restart-in-current-session "MyAppName"
      where MyAppName is the name of your application in AlwaysUp.

      Since we want to start our AlwaysUp application called "Notepad", we enter:

      -restart-in-current-session "Notepad"

      Be sure to put quotes around the name if it contains spaces!

    Create Basic Task Wizard: Program

    Click Next >

  7. Almost done! Check the Open the properties dialog for this task when I click Finish near the bottom and click the Finish button.

    Create Basic Task Wizard: Finish

  8. On the properties window that comes up, check the Run with highest privileges box. This is the magic necessary to avoid the annoying UAC Prompt when you log in.

    Scheduled Task: Run with highest privileges

    Click OK to save the change.

  9. That's it! Next time you log on you should see your AlwaysUp application running on your desktop. Here's our Notepad application ready and waiting after a log on:

    Notepad launched by AlwaysUp in the session



  10. Application not starting properly when you log on?

Download & Try it Free!

Download AlwaysUp and Run as a Service Today! Version 15.5 New!

8.0 MB Installer
Our 12,000+ customers include...
Compatible with Windows 11 Compatible with Windows Server 2022 Compatible with Windows 10
Over 94,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 19+ years!