How to Automate Tasks on Windows 10 to Save Time

In a world of smart technology, we are missing out on a bunch of things if we are not doing automation right. Android has theTasker app for automationthat is now getting a new Rules feature; iOS already has a powerful Shortcuts app to automate a multitude of tasks and more. But those are smartphones, what about PCs? Well, Windows 10 has a similar tool called Task Scheduler which allows you to perform a host of tasks based on time, events, and various other conditions. So in this article, we bring you a detailed guide on how to automate tasks on Windows 10. Along with that, we have also shared a basic tutorial on PowerShell in the next section. Now having said that, let’s begin the article without further delay.

Automation on Windows 10

Automation on Windows 10

Before moving forward, let me summarily explain some broad points of this article. To automate tasks onWindows 10,there are essentially two methods. The first one is a native tool called Task Scheduler which is quite easy and straightforward. And the next method is automation throughPowerShellwhich is a bit complex, but also feature-rich. Now having gone through the outline of the article, let’s jump right in.

1. Automate Tasks on Windows 10 Using Task Scheduler

1. Automate Tasks on Windows 10 Using Task Scheduler

The best way to learn something is by solving problems. So, here we willimplement a basic task.For example, let’s say every time we turn on our computer, it opens abrowserand then heads to somecool websites. So all we have to do is automate this routine task so that we can save time and boatloads of clicks. Let’s begin.

  1. Press the Windows key once andtype “Task Scheduler”. Open the first result and pin it on your taskbar because you are going to need it all the time.

  2. The UI may look a bit daunting in the beginning, but just follow my instructions and you will be off to the races. Now,click on “Create Task”on the right panel.

  3. After that, provide a name to your task andcheck the box for “Run with highest privileges”. It will not prompt UAC or ask for any administrator permission before running the task.

  4. Nowswitch to the “Triggers” tababove and click on the “New” button.

  5. Here,choose “At log on” optionfrom the drop-down menu and click on the “OK” button. You can also delay the task by a few seconds, but let’s just leave it for now. As a side note, I always delay my internet-related tasks by 30 seconds so that the computer can connect to WiFi and be ready in time.

Define the Action

  1. Now, switch to the “Actions” tab and click on the “New” button. Here,choose “Start a program”from the drop-down menu as we will be openingGoogle Chrome.

  2. Next, click on the “Browse” button andselect Chrome from desktopor any location.

  3. After that, enter yourwebsite’s URL in the “Add Argument” box. For example, you can typebeebom.comand click the “Ok” button. In case, you want toopen multiple websitesat once then just put a blank space in between and enter another website.

  4. Having done that, switch to the “Conditions” tab anduncheck both the options under the “Power” section. It will allow the PC to run the task irrespective of battery or charging status.

  5. Finally, move to the “Settings” tab. Here, we don’t have to touch anything, butmake sure “Allow task to be run on demand” is checked. Also, go through other options so that you can understand the scope of what you can do with Task Scheduler. Now, click on the “Ok” button.

  6. You have successfully created a task to open yourfavorite websitesafter turning on your computer. You canfind your task in the “Task Scheduler Library” on the left panel. If the task is not showing, hit the “Refresh” button on the action panel located on the right side.

  7. Further, you cantest the task manually if it’s running properly by pressing the “Run” buttonon the right panel. If it’s working fine then restart your computer and you will have your series of tasks automated in no time. Enjoy!

So this task was for opening websites in Chrome, but there can be several use-cases based on your daily routine. For example, you can choose to connect to a particular WiFi point automatically, create a task to empty recycle bin after a certain amount of days, you can also startOffice appsor just about anything you want. Granted, there are a lot of other things to learn, butfor most of the tasks, you will be following similar steps mentioned above. The only changes will have to be made in the “Action” and “Triggers” tab, but apart from that everything remains similar. Also, I would advise you to tinker with different settings to understand Task Scheduling properly.

2. Automate Tasks on Windows 10 Using PowerShell

In the above section, we learned how to automate tasks using Task Scheduler. But there is a nativescripting tool on Windows 10 called PowerShellwhich is quite advanced and versatile. You can go about doing anything with a few commands. I know many users dread seeing the blue screen of PowerShell, but believe me, it’s quite easy once you get the whiff. Let me just say, it’s nothardcore programmingso do not worry.

Apart from that, there are some key differences between PowerShell and Task Scheduler. PowerShell is not an automation tool but a scripting tool. It stillrequires Task Scheduler to automate its script. Whereas Task Scheduler is a complete tool in itself where you can create scripts and also automate those tasks.

Apart from that, in terms of performance,Task Scheduler is quite fastbecause it executes everything from the app. However, its scope is relatively limited as you can’t delve deep into other programs and features. So, if you have a small task at hand then Task Scheduler is great. However,PowerShell is very dynamic and can interact with many programsat once, but it’s relatively slow at executing those commands. So basically, on one hand, you get faster execution but have limited scope and on the other hand, you get versatile support, but slower execution. Nevertheless, here we will go through the same example as above to check how both fare against each other.

Get Started with PowerShell Syntax

Let me begin with an example. What you are seeing below is a PowerShell command to open multiple websites in Chrome. Here,Start-Processis a command to start a programandchrome.exeis the executable name of the program. After that, websites are provided with a blank space under double-quotes. Very similar to Task Scheduler, right? Easy peasy.

You can alsoadd your Spotify playlist, favoritesubredditsor anything you wish.

Now that you have understood the syntax and what different arguments of PowerShell command mean, let’s begin with the steps.

Steps to Create PowerShell Script

1.Open a Notepad fileand paste the below command.

  1. You canchange the website as per your preference. And if you want to provide a different browser, right-click on the browser icon and open “Properties”. In the target box, copy the lastXXXX.exepart and paste it in the Notepad file. This way, you can find executable names for other programs as well.

Note:In case it’s not working, you can paste the whole address from the target box. Here’s an example of the Microsoft Edge browser. You can do this for any program.

  1. Now, go to “File” on Notepad and click on “Save As”. Here, give a name to your script and thenadd.ps1extension at the end. PS1 is the extension of PowerShell scripts. Also, make sure to keep the file name as one word.

Define the Action

  1. Having done that, open Task Scheduler andcreate a new task by following steps 1-5mentioned in the above section. Once you are in the “Action” tab, choose “Start a program” from the drop-down menu and typepowershell.exein the Program/Script box.

  2. Now,right-click on the PS1 fileand open “Properties”. Here, you will find the file path in the location section. Copy it and add\filename.ps1at the end. Here is how it should look. We will need this address in the next step.

6.Replace the below addresswith your address from the above step and paste it in the “Argument” box. After that, click the “Ok” button.

  1. Finally, you are done defining the Action part using PowerShell script. Now,follow the same steps from 9 to 12from the Task Scheduler section. You can go ahead and test the script using the “Run” button. As I explained above, the PowerShell window might prompt a small popup window because it’s a tad slow in executing the script.

So that’s how you can create a simple script on PowerShell and automate it using Task Scheduler. What I showed above is just the tip of the iceberg. You can do a lot more and the possibilities are endless. For example,you can add commands to run a separate program, delete old files from certain folders,disable Windows 10 updateand other OS level services, enable maintenance services, and more using the same PS1 file. You no longer have to go back to Task Scheduler to tweak anything, just make changes in the PS1 file using Notepad and it will run all the changes. Awesome, right? In the coming days, we will share some cool PowerShell scripts to automate tasks on Windows 10 so stay tuned with us.

Ace PowerShell Scripting and Automate Routine Tasks on Windows 10

So that was our in-depth guide on how to get started with automation on Windows 10. There are many hidden tools that we can take advantage of and Task Scheduler is one of them. And if you happen to know a few tricks of PowerShell then you can create multi-program scripts that will save you a lot of precious time. Anyway, that is all from us. If you liked this guide and could learn something new then do let us know in the comment section below.

Arjun Sha

Passionate about Windows, ChromeOS, Android, security and privacy issues. Have a penchant to solve everyday computing problems.

Add new comment

Name

Email ID

Δ

01

02

03

04

05