Startup Folder vs Task Scheduler for Running Macros at Sign-In
Two built-in loaders can start a macro at sign-in, and they differ on rights, delay and logging. This page helps you choose one in four questions.
Quick answer
Use the Startup folder for a macro tool that needs standard rights and no delay: one shortcut in shell:startup is enough. Use Task Scheduler when the program needs administrator rights, must wait before launching, or should leave a Last Run Result you can read. Do not run both for the same macro.
| Applies to | Windows 10 and 11 loaders |
|---|---|
| Time needed | 2 to 8 minutes per method |
| Difficulty | Easy for the folder, moderate for tasks |
| Cost | Free |
| Needs admin rights | For all users and highest privileges |
| Last verified | November 2026 |
Startup folder or Task Scheduler: the quick comparison
The Startup folder starts a shortcut at your sign-in with normal rights and no delay. Task Scheduler starts a task at log on, with an optional delay, optional highest privileges and a result you can read afterwards. The table puts the two side by side.
This is the supporting page for the choice made in the methods section of the main guide. The registry Run key is added as a third column because it does the same job as the folder.
| Question | Startup folder | Task Scheduler | Registry Run key |
|---|---|---|---|
| When does it start? | At your sign-in | At log on, at startup or on an event | At sign-in |
| Can it wait first? | No | Yes, delay in mmmm:ss for ONLOGON | No |
| Administrator-level program | Skipped by Windows | Works with Run with highest privileges | Skipped by Windows |
| Who does it apply to? | You, or everyone with shell:common startup | The account you set, or any user | HKCU for you, HKLM for everyone |
| Can you see a result? | No | Last Run Result and Last Run Time | No |
| Setup time | About 2 minutes | About 5 to 8 minutes | About 5 minutes, plus a backup |
| Verdict | Default choice | Choose for rights, delays or logs | Rarely worth it |
When the Startup folder is enough
The Startup folder is enough when your macro tool needs standard rights, no network and no log. A text expander, a clipboard manager and a hotkey launcher all fit that profile.
Its strengths are visibility and reversibility. You can open the folder, see every shortcut and delete one in a second. AutoHotkey’s own FAQ recommends the same route for scripts, and Microsoft documents the per-user path %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.
When Task Scheduler is the better loader
Task Scheduler is the better loader when the payload needs administrator rights, must wait for something, or must prove that it ran. Its Create Task dialog exposes all three; the Basic Task wizard does not.
The command reference documents the delay as mmmm:ss, valid with ONSTART, ONLOGON and ONEVENT. It also documents /rl with LIMITED as the default and HIGHEST as the alternative. One wrinkle: Microsoft describes ONLOGON as “any user” in one paragraph and as the /ru account in another, so test it on a second account if more than one person uses the PC.
The four-question loader test
Four yes-or-no questions pick the loader: do you need administrator rights, a delay, every user on the PC, or a run log? One yes means Task Scheduler. Four noes mean the Startup folder is enough.
- Does the program need administrator rights?
- Must it wait for the network or another app?
- Must it start for every account on this PC?
- Do you want a record of when it ran?
For the all-users case, a second option exists: shell:common startup works without Task Scheduler but requires an administrator to add the shortcut.
One macro, two loaders: a worked example
To start one macro script from either loader, point both at the same file and change only the trigger. The shortcut route needs a paste; the scheduled route needs one command. Build only one of them.
Version A: the shortcut
shell:startupPaste a shortcut to C:\Macros\daily.cmd into the window that opens.
Version B: the scheduled task
schtasks /create /tn "Daily macros" /tr "C:\Macros\daily.cmd" /sc onlogon /delay 0000:30Version B waits 30 seconds after log on. Everything else is equal, which is why the choice usually comes down to the delay.
Where the registry Run key fits
The registry Run key fits installers and managed deployments, not hand-built macro setups. It behaves like the Startup folder, hides in the registry and carries more risk if you edit it wrongly.
Microsoft lists the keys under HKCU and HKLM, with a Wow6432Node variant for 32-bit programs on 64-bit Windows, and warns to back up the registry first. If you inherit an entry there, document it and leave it alone.
Questions about the Startup folder and Task Scheduler
Which is better for a text macro tool, the Startup folder or Task Scheduler?
The Startup folder, in most cases. A text macro tool needs only to be running after sign-in, and a shortcut does that with no extra rights. Use Task Scheduler when the tool must run as administrator, wait for a network, or leave a record of each run.
Does the Startup folder support a delay?
No. Anything in the folder starts as part of the sign-in sequence, with no setting to wait. If a macro needs the network or a slow app first, build a Task Scheduler task with an At log on trigger and a delay.
Can both methods start the same macro?
They can, and that is the mistake to avoid. Two starts launch two copies of the tool, which doubles expansions or throws an error. Choose one loader per macro and delete the other entry before you test, then sign out once to confirm only one copy is running.
Do I need administrator rights to create a scheduled task?
For your own account with standard rights, usually not. For highest privileges, other accounts or all users, you do. Microsoft’s schtasks reference lists /rl highest and /ru as separate settings, so test the exact task on a standard account before you rely on it.
Where does Windows 11 keep the all-users startup folder?
Under %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup. Open it with shell:common startup. Microsoft’s startup applications page lists it beside the per-user folder, and you need administrator rights to add to it. Anything placed there starts for every account that signs in on that PC, so use it with care.
Next step
If you pick the folder and want a ready tool for the macro itself, our free Windows tool is one option: the Macro Keys product page lists its text macros and hotkey launcher. The guide to starting Macro Keys with Windows shows its own setting. For problems after setup, see the repair guide.