DEV Community

Cover image for Creating a new login task using Task Scheduler

Posted on

Creating a new login task using Task Scheduler

Task Scheduler is a tool that can be used to set up an automated task when a specified condition is met. You can schedule any program to run at a specific time or when an event occurs, this is done by monitoring the time and event. Today, we'll be setting up Firefox to startup whenever the user logs onto the computer.

  1. Open Task Scheduler with search bar task-open open task
  2. Select a create task on the right side of the screen.
    Then provide a name and description for the new task, and we'll set Configure for, to Windows 10 because that's the current version we are running, and we don't want the computer to emulate a different version of windows.

  3. Now, once you entered the description, slide on over to the triggers tab on the top of the dialog box, and select the new option.
    You will have a wide variety of options that will appear, from scheduling a program to run at a specified time to when an event occurs, the options are endless, but for now we will be selecting At log on option. We won't be delaying anything or activating the task on a date, we just want Firefox to run immediately when the user logs in. So won't be selecting any of these options. Then select ok.

  4. Now we head on over to the Actions tab on the top of the dialog box, select new, this will provide you with an action selection list, selectstart a program. Inside the Program/Script entry. We will enter the following path, "C:\Program Files\Mozzila Firefox\firefox.exe", then on the Add Arguments entry, enter a website you would like to open, I'll be using the all mighty 😃

  5. Reboot the computer and BOOM! Firefox will auto start with website loaded.

Thanks for reading

Top comments (0)