
Now you should have 2 new tasks in Task Scheduler, which you can find under Active Tasks in Task Scheduler:Ĭonfirm the configuration by rebooting your server. Use all of the same settings for this task as the previous one, but choose the program C:\Windows\System32\rundll32.exe, and fill in Add arguments (optional) with “user32.dll, LockWorkStation”.Ĭlick OK to save the second task. This will disconnect the user from the local desktop after your program is launched, while leaving the user account running and open to access via Remote Desktop Connection or another login.


This time, we will use exactly the same settings to launch a Windows service. The last 2 tabs should remain with the default settings. exe file of the program you want to launch automatically. Click OK to save the trigger.Īctions Tab: Click “New…” and then select Action: Start a program. Set it to Specific user: and then choose your user (Administrator). Triggers Tab: Click “New…” and then select Begin the task: At log on.

Select “Run only when user is logged on.” exe program you want to run automatically: Fill in each of the settings tabs with the options below. Next, open Task Scheduler, and click Create Task… in the right-hand menu. Now, the Administrator user will log in automatically after the system is rebooted.

zip, run Autologon.exe and enter the credentials for the Windows user you are currently using (for example, Administrator). How to Automatically Launch a Program on Startupįirst, download a Microsoft provided program called Autologon.exeĪfter extracting the. In this article, we will address how to automatically log in a user and launch a GUI program when the system reboots. These solutions work for some situations when the program you need to start only needs to run as a background (unseen) process. There are two common solutions to start a program automatically after the server reboots: use Task Scheduler, or make the program start as a Windows service at bootup.
