How Do I Get a Program to Auto-start When I Sign In to Windows?

The right shortcut in the right place.

Want a program to start automatically every time you sign in to Windows? There’s a simple, built-in way to do it.
a Windows 11 desktop displaying the message "Starting..."
(Image: Gemini)
Question: Leo, I’m trying to find out how to add a program to autostart on boot up in Windows. Do you know?

There are many ways to start programs automatically when Windows boots or when you sign in. Most of them are obscure registry settings used by applications when they’re installed. Fortunately, there’s one easy approach.

TL;DR:

Auto-start

You can have a program start when you sign in to Windows by using the hidden Startup folder. Put a shortcut to the program there, and Windows will run it automatically each time you log in. It’s simple, safe, and doesn’t require editing the registry.

The Startup folder

There is a special folder called Startup. Any programs or shortcuts in it are run each time you sign in.

In older versions of Windows, you could navigate to that folder on the Start menu and add shortcuts as needed. The folder still exists, but it’s hidden.

There are several ways to examine the Startup folder.

  • In the Run dialog box (on the alternate Start menu, or opened by typing Windows Key + R), run1 the command “shell:startup“.
  • In the Run dialog box, run the command: “%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup“. (%APPDATA% is shorthand for “C:\users\%USERNAME%\AppData\Roaming”, and will automatically have the correct “%USERNAME%”.)
  • In the Run dialog box, run the command: “C:\users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup“.
  • In Windows File Explorer, navigate to “C:\users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup,” replacing “%USERNAME%” with your Windows log-in name.

Regardless of which technique you use, the result will be a Windows File Explorer window opened on the Startup sub-menu.

Startup folder.
The contents of the Startup folder. Click for larger image. (Screenshot: askleo.com)

As you can see, I have several things in there.

Installed programs that automatically run something on startup often place their shortcuts in that folder. The “Cryptomator” shortcut you see there was added by Cryptomator’s setup program. Others, such as “AutoHotkeyLeo.ahk – Shortcut”, I created manually.

Creating a Startup shortcut

Once in the Startup folder in Windows File Explorer, you can add a shortcut to any program (or folder2) using whatever technique you like.

One approach is to right-click in the right-hand pane beneath any pre-existing shortcuts and click on New and then Shortcut.

New shortcut item.
Creating a new shortcut. Click for larger image. (Screenshot: askleo.com)

In the resulting dialog, enter the name of the program you want to run. This name can be a full path to the program (use the Browse button to locate that file), or, in the case of many Windows programs, can simply be the name of the program. Below, I’ve entered cmd, the Windows Command Prompt.

Creating a shortcut.
Creating a shortcut. (Screenshot: askleo.com)

Click Next. In the next dialog, you can change the name displayed for the shortcut, if you’d like to. (Unless you’re regularly examining the contents of the Startup folder, you’ll rarely, if ever, see the shortcut name.) Click Finish.

Naming your shortcut.
Naming your shortcut. (Screenshot: askleo.com)

That’s it. You now have a shortcut in the Startup folder.

New shortcut created.
New shortcut created. Click for larger image. (Screenshot: askleo.com)

Now, the next time you sign in to your computer, the new shortcut will run. In this example, that means a new instance of the Windows Command Processor will open.

Using the Startup folder

Any shortcut you place in the Startup folder will automatically run when you sign in to your system. You might have it:

  • Open a document.
  • Open a program.
  • Run a script or batch file to perform more complex operations.

My use of AutoHotKey is a good example. I use AutoHotKey to create keyboard macros — short key sequences that are automatically expanded into longer text. I want that running all the time, so I place a shortcut to the AutoHotKey script — “AutoHotkeyLeo.ahk”– in the startup folder. That way, when I sign in to Windows, AutoHotKey automatically runs the script.

Note: the Startup folder is only one place where startup items are found. As I mentioned earlier, there are other complex approaches (typically involving the registry) for more complex situations than just when you sign in. The SysInternals tool autoruns will show all of them.

Do this

If you need to have something run automatically when you sign in, now you know how. My only warning is not to get carried away. Your sign-in may become slower the more you add.

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

Podcast audio

Play

Footnotes & References

1: Type the string into the Run dialog box and click on OK.

2: This just opens the folder in Windows File Explorer when you sign in.

6 comments on “How Do I Get a Program to Auto-start When I Sign In to Windows?”

  1. I have a shortcut to %APPDATA%\Microsoft\Windows\Start Menu\Programs\
    I’ve been using it to manage the Start Menu since Windows 2000.
    I run a few portable programs, for example, Thunderbird. I have the Thunderbird Portable installation in OneDrive to keep Thunderbird synced on all my computers. IMAP syncs the emails but using Thunderbird Portable in the Cloud also syncs the address book.
    I’m reminded of it because it’s one level higher than the startup folder. You might want to look at it. You’ll learn some of the stuff under the Windows hood (or bonnet if you’re from the isles).

    Reply
  2. Thanks, once again Team Leo! I have two comments, if I may. Although I find it hard to believe that twice as many computers are running W11 in such a comparatively short time, there are still something like a billion PCs running (many of us ‘have to’) Windows 10. Where the advice / procedures are not identical, would it be possible to mention the differences? As in the case of Startup, where the vertical ellipsis isn’t how one gets at things, and there are other differences, too.
    Question two: In W10, I have exactly copied the Properties from the Firefox icon, located in my Task Bar, and placed a copy in the Startup file. Firefox will not automatically start. What am I missing?
    Many Thanks!

    Reply
    • The concept is identical between 10 and 11. “shell:startup” opens a folder, and shortcuts placed in that folder run on sign-in.

      Not sure what “properties” you copied from the firefox icon. My recommendation is in shell:startup folder, right click, New -> Shortcut and then the target would be the full path to Firefox.exe … in my case that’s “C:\Program Files\Mozilla Firefox\firefox.exe”

      Reply
  3. Leo, you wrote:

    “My use of AutoHotKey is a good example. I use AutoHotKey to create keyboard macros…”

    Share with us, Leo! What program is AutoHotKey, and where do we get it???

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.