Use Task Scheduler to Launch Apps, Scripts, or Backups at Logon in Windows 10/11

  • Thread Author

Use Task Scheduler to Launch Apps, Scripts, or Backups at Logon in Windows 10/11​

Difficulty: Beginner | Time Required: 15 minutes
Task Scheduler is one of the most useful built-in tools in Windows, yet many users overlook it. If you want a program to open automatically when you sign in, run a script in the background, or start a backup task every time you log on, Task Scheduler gives you more control than simply dropping shortcuts into the Startup folder.
This is especially helpful when you want to:
  • Launch a favorite app automatically after sign-in
  • Run a batch file or PowerShell script at logon
  • Start a backup or sync task without doing it manually
  • Use advanced options like delayed start, elevated permissions, or specific user accounts
The good news is that this works in both Windows 10 and Windows 11, and the process is nearly identical.

Prerequisites​

Before you begin, make sure you have:
  • A Windows 10 or Windows 11 PC
  • An account with permission to create scheduled tasks
  • The app, script, or backup command you want to run
  • The full file path to the program or script, if possible
Note: If you are scheduling a script or backup command, it helps to test it manually first so you know it works before automating it.

Why Use Task Scheduler Instead of the Startup Folder?​

The Startup folder is fine for basic app launching, but Task Scheduler offers more flexibility. With it, you can:
  • Start tasks with administrative privileges
  • Add a delay after logon so Windows is not overloaded immediately
  • Run tasks for one user or any user
  • Trigger scripts, maintenance tasks, and backups more reliably
If you need more than simple “open this app when I log in,” Task Scheduler is usually the better option.

Step-by-Step: Create a Task That Runs at Logon​

1. Open Task Scheduler​

  1. Press Windows + S to open Search.
  2. Type Task Scheduler.
  3. Select Task Scheduler from the results.
You can also press Windows + R, type taskschd.msc, and press Enter.

2. Choose “Create Task”​

Once Task Scheduler opens:
  1. In the right-hand Actions pane, click Create Task.
Tip: You may also see Create Basic Task, but Create Task gives you more options and is better for apps, scripts, and backups.

3. Name and Describe the Task​

On the General tab:
  1. In the Name box, enter something descriptive, such as:
    • Launch Notepad at Logon
    • Run Backup Script at Sign-In
    • Start Sync Tool at Logon
  2. Optionally add a description so you remember what it does later.
Then review these options:
  • Run only when user is logged on
    Best for apps that need a visible window.
  • Run whether user is logged on or not
    Better for background scripts or backup tasks.
  • Run with highest privileges
    Use this if the app or script needs administrator rights.
Warning: Only enable Run with highest privileges if the task truly needs it. Running tasks as admin gives them more system access.
For most beginner scenarios:
  • Use Run only when user is logged on for normal desktop apps
  • Use Run whether user is logged on or not for background jobs or backups
Also, make sure Configure for is set to:
  • Windows 10
  • or Windows 11, depending on your system

4. Create the Logon Trigger​

Next, switch to the Triggers tab.
  1. Click New.
  2. In the Begin the task dropdown, choose At log on.
  3. Decide whether the task should run:
    • Any user
    • or Specific user
If you only want it for your own account, choose Specific user.

Optional: Add a Delay​

If you do not want the task to start immediately when you sign in:
  1. Check Delay task for.
  2. Choose a delay such as:
    • 30 seconds
    • 1 minute
    • 5 minutes
This can improve startup performance, especially for backups or heavy applications.
  1. Click OK.
Tip: A short delay is often a good idea if Windows already launches many startup items.

5. Add the Action​

Now open the Actions tab.
  1. Click New.
  2. For Action, leave it set to Start a program.
Now enter the program or script details.

To launch an app​

In Program/script, browse to the application executable, such as:
  • C:\Program Files\AppName\App.exe
  • C:\Windows\System32\notepad.exe

To run a batch file​

In Program/script, enter the path to the .bat or .cmd file, or browse to it.
Example:
C:\Scripts\backup.bat

To run a PowerShell script​

For PowerShell scripts, it is usually better to launch PowerShell itself and pass the script as an argument.
Example:
  • Program/script:
    powershell.exe
  • Add arguments (optional):
    -ExecutionPolicy Bypass -File "C:\Scripts\backup.ps1"

To launch a backup tool​

If your backup software supports command-line options, enter the executable path and required arguments.
Example:
  • Program/script:
    C:\Program Files\BackupApp\backupapp.exe
  • Add arguments:
    /runjob "Daily Backup"
Note: Command-line options vary by app. Check the software’s documentation if needed.
If your task depends on a certain folder, you can also fill in Start in (optional) with the working directory.
When finished, click OK.

6. Review Conditions and Settings​

Before saving, check the Conditions and Settings tabs.

Conditions tab​

For a logon task, you may want to uncheck options that could prevent it from running, such as:
  • Start the task only if the computer is on AC power
    This matters on laptops.
If this remains checked, your task may not run on battery power.

Settings tab​

Useful settings include:
  • Allow task to be run on demand
    Lets you manually test it
  • Run task as soon as possible after a scheduled start is missed
    Helpful if the trigger is delayed or skipped
  • If the task fails, restart every...
    Useful for important background tasks
For beginners, the default settings are usually fine, but it is worth reviewing them.

7. Save the Task​

  1. Click OK to save the task.
  2. If prompted, enter your account password.
If you selected Run whether user is logged on or not, Windows may require credentials to store the task properly.

8. Test the Task​

Before relying on it every day, test it.
  1. In Task Scheduler, find your task in the Task Scheduler Library.
  2. Right-click it.
  3. Choose Run.
Check whether:
  • The app opens correctly
  • The script runs without errors
  • The backup starts as expected
If it works, sign out and sign back in to confirm the At log on trigger works normally.

Example Scenarios​

Here are a few common ways to use this feature:

Automatically open an app​

You can launch tools like:
  • Notepad
  • OneDrive-related scripts
  • A work dashboard app
  • A monitoring utility

Run a cleanup or setup script​

You might use a batch or PowerShell script to:
  • Map network drives
  • Clean temporary files
  • Start services
  • Copy files to a backup location

Start a backup at sign-in​

You can trigger:
  • File copy scripts
  • Robocopy jobs
  • Third-party backup software
  • Sync tools for work folders

Tips and Troubleshooting​

The task does not run​

Check the following:
  • Confirm the trigger is set to At log on
  • Make sure the path to the app or script is correct
  • Verify the file still exists in that location
  • Review the History tab in Task Scheduler for errors

The app opens manually, but not from Task Scheduler​

Possible causes include:
  • The task needs Run with highest privileges
  • The app requires a visible desktop session
  • The Start in folder is missing
  • A security product is blocking the script

The script works in Command Prompt but fails in Task Scheduler​

This often happens when:
  • Relative paths are used instead of full paths
  • The script depends on a folder that is not set in Start in
  • PowerShell execution policy blocks the script
Using full paths and setting a working directory usually helps.

The task runs too early after logon​

If Windows is still loading services or network connections:
  • Edit the task
  • Go to Triggers
  • Add a delay of 30 seconds to 2 minutes

The task runs for the wrong user​

Edit the task and confirm:
  • The correct user account is selected on the General tab
  • The trigger is set for the intended user, not Any user
Tip: If you share a PC with others, be careful with Any user, especially for scripts that access personal files or network resources.

When to Use Startup Folder Instead​

The Startup folder is still useful if you just want to open a simple app after sign-in and do not need advanced settings. However, Task Scheduler is the better choice if you want:
  • More reliability
  • Delayed startup
  • Admin rights
  • Script support
  • Background operation

Conclusion​

Using Task Scheduler to launch apps, scripts, or backups at logon is a simple way to automate repetitive tasks in Windows 10 and Windows 11. It gives you much more control than the Startup folder and is especially useful for power users, home offices, and anyone who wants their PC to be ready to work immediately after sign-in.
Once you create one task, you can easily build others for maintenance, backups, and everyday productivity.
Key Takeaways:
  • Task Scheduler can launch apps, scripts, and backup jobs automatically at logon
  • It offers more control than the Startup folder, including delays and elevated permissions
  • The At log on trigger works well for both personal and shared PC setups
  • Testing tasks manually helps catch path, permission, and timing issues early
  • This feature works in both Windows 10 and Windows 11 with nearly identical steps

This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.