How to run a program before signing in to Windows 10/11

This page will show you how to run any program when you start up Windows 10/11 without signing in.

There are three common ways to run a program at startup:

  1. Add it to the Startup folder
  2. Add to Registry
  3. タスクスケジューラに登録する

When you start Windows, the sign-in screen appears and you are not signed in to a specific user account, so methods 1 and 2 cannot be used.

Sign-in screen
Sign-in screen

The reason is that programs registered in the startup and registry will only run after you sign in to your user account.

By using option 3, Task Scheduler, you can run programs even if you are not signed in to your user account.

table of contents

How to run a program without signing in

*You can register in the same way for both Windows 10 and 11.

To use this feature, you must first set a password for your user account.

How to Set, Change, or Remove a Local Account Password in Windows 10/11

1.Start buttonRight-click > Computer Management.

2. On the left, click Computer Management (Local) > Task Scheduler > Task Scheduler Library.

3. Next, click on "Create Task" on the right.

task Scheduler
task Scheduler
Creating a Task
Creating a Task

4. Enter a name for the task in the "General" tab (you can change the name as you like).

Create Task - General Tab
Create Task – General Tab

5. Click "Run whether user is logged on or not” is checked.

Create Task - General Tab
Creating a Task – General Tab

6. Open the Triggers tab and click New.

Creating a Task - Triggers Tab
Creating a Task – Triggers tab

7. "New Trigger" will open, so select "At startup" under "Begin the task."

New Trigger
New Trigger

8. Click OK, open the Actions tab and click New.

Creating a Task - Actions Tab
Creating a Task – Actions Tab

9. For example, here is the content below:Batch fileI'll try registering it.

Enter the full path of the batch file. (Enclose the path in double quotation marks.)

shutdown /r /f /t 10
del %0

The above command is for testing purposes only and should never be registered.

The above command executes a command to restart after 10 seconds and then deletes the batch file itself.

Once you restart, the batch file will be automatically deleted, so even if the Task Scheduler tries to run it, it will not be able to run a file that does not exist, and Windows will start up as usual.

Commandmeaning
shutdown /r /f /t 10Restart after 10 seconds
del %0Delete the batch file itself

However, if you enter the command incorrectly and the batch file is not deleted, the computer will restart every time you start it and you will not be able to sign in.

10. Once registration is complete, click OK > OK again.

New Operations
New Operations

11. You will be prompted to enter the user account information to run this task. Enter your password and click OK.

*If you are using a Microsoft account, please enter your Microsoft account password (not your PIN).

Enter the user account information to run this task.
Enter the user account information to run this task.

12.The task will then be created.

task Scheduler
task Scheduler

13. "Startup" not "At system startup"It becomes ".

14. Once you have confirmed this, close Task Scheduler and restart your PC.

Sign-in screen
Sign-in screen

In the image above, the test batch file registered earlier is executed without signing in, and the computer is automatically restarted.

Please refer to the above steps and try registering your favorite programs or batch files.

If you found this article helpful, please share it on social media.

Person who wrote this article

Driven by questions arising from my daily PC use and the desire to "do more," I have been pursuing self-study in Windows since around 2008. I am sharing the "aha!" techniques and solutions I discovered through trial and error with the sole purpose of helping you in your PC life.

View profile

Comment:

To comment

[About submissions]
We welcome any questions or information regarding the content of the article.
However, please note that content unrelated to the purpose of the article, criticism of specific individuals or organizations, offensive language,Inappropriate wordsComments containing the above may be deleted or made private without notice at the discretion of the administrator.
Please note that spam may be automatically deleted by anti-spam measures.

CAPTCHA


table of contents