Productivity Windows

7 Nerdy Things You Can Automate with the Windows Task Scheduler

Ryan Dube 27-11-2015

The Windows Task Scheduler has to be one of the most convenient and useful legacy tools Microsoft ever invented, and in this article I’ll show you seven reasons why that’s true.


Oh, sure, you could use the Windows scheduler to schedule all of those boring tasks 4 Boring Tasks You Can Automate With the Windows Task Scheduler Your time is too valuable to be wasted with repetitive tasks. Let us show you how to automate and schedule tasks. We have a few great examples, too. Read More that everyone does, like defragging your hard drive or cleaning up temporary files How to Automatically Keep Windows 7 Clean of Obsolete Files Windows has a way of collecting virtual dust, a circumstance that has not changed considerably in Windows 7. These obsolete files take up space and contribute to hard drive fragmentation. While neither of this is... Read More , but what fun is that?

Why not do something that’s actually useful, like send an automated email, issue an automated Facebook post Using IFTTT To Automate All Your Facebook Photos & Video [Facebook Tip Or Hack Of The Week] Not everyone uses Facebook to store their photos and video, but alternative photo and video storage still doesn't seem to have the best social integration just yet. Most of the alternatives are designed for more... Read More or Tweet, or kick off some music or a video in the morning to help you wake up when your alarm clock doesn’t do the trick?

I’ll show you how to do these things and more in this article.

1. Send an Automated Email

You’re a busy person, and a lot of that busy-work usually involves things like sending people status updates or emailing your boss 6 Ways to Get Busy People to Answer Your Emails There are a whole different set of rules when it comes to emailing that will encourage or discourage a person to hit the "reply" button and answer you. Learn the rules of email success. Read More a report. So, why not automate the sending of information via email and remove that from your to-do list?

Here’s an example: I need to send out a performance report to my staff each month.



This report is stored in a Word Document in c:\users\ryan\documents\muo documents\muo-report.docx.

While I could take the time every single month to write up that email from scratch and type the report data right into the email, why not just generate the report document by the 14th of the month, and have an automated script send the email with the Word document attached?



Of course, this isn’t just a simple batch job you can run to accomplish this. You’ll need to set up SendEmail on your PC for this to work. Download SendEmail [Broken URL Removed], and then use my guide Send Automated Emails Using SendEmail & Windows Task Scheduler No matter what your job is, usually everyone at some point has to email a boss or supervisor with daily, weekly or monthly status reports. Read More to set it up.

Once you’re ready, it’s time to create the scheduled task so you can send your email on a fixed schedule. To use SendEmail with a service like Gmail, you just navigate to the folder where you saved the sendemail.exe file, and type the following command:

sendEmail -o tls=yes -f -t -s -xu -xp YOURPASSWORD -u "Hello from sendEmail" -m "How are you? I'm testing sendEmail from the command line."

You’ll also have to add an “-a” parameter to attach a file (I’ll show you below). Now that you can send emails in command line format, you can use a scheduled task to send out your report on a schedule!

I’ll walk you through creating a task in this first step – in subsequent sections below, I’ll assume you know how to create and schedule the task Run Programs Automatically Using Windows Task Scheduler Read More .


First, launch the Task Scheduler by (in Windows 10) clicking the Start button, clicking All Apps, and typing “schedule“, then choose Task Scheduler from the list of apps. Once the main windows comes up, choose Create Task…


Next, name your task. In this case I’ll call it “Send MUO Report”. It’s also going to run under my user account, but if you have multiple users on a PC and they want their own scheduled tasks, make sure the correct user is selected.



On the Triggers tab, set up the schedule when you want your emails to get sent. In this example, I’m going with the 15th of the month, every single month.


The Action tab is where the magic happens. This is where you’ll tell the Task Scheduler to run sendEmail.exe (wherever you’ve saved it), and then in the Add arguments (optional) field is where all of the additional parameters go.


One more important setting to check is on the Conditions tab.


Make sure that Wake the computer to run this task is selected, or if you walk away from the computer for a while and it wants to send this email for you automatically, it won’t be able to.

Once this task runs, you’ll see the email appear in your inbox with the file attached.


The only trick now is to remember to update that Word document before the date comes when the email gets sent!

That’s all there is to it! Now that you can schedule sending emails to people, with files attached, just think of all of the possibilities Send Automated Emails Using SendEmail & Windows Task Scheduler No matter what your job is, usually everyone at some point has to email a boss or supervisor with daily, weekly or monthly status reports. Read More !

2. Open and Organize Your Browser

Whenever I first wake up in the morning, after grabbing a cereal or some other easy breakfast, I usually fire up the laptop and open up my favorite tech news sites 5 Interesting Ways To Use Google News RSS Feeds Read More .

Wouldn’t it be cool if your computer just opened up your browser, and all your favorite news websites, first thing in the morning and all on its own? Well, it’s possible.

Just set up the task as described above. Set the trigger for every day at 8 am (or whenever you get up), and set the trigger like this.


Here’s how you do it. In the Program/script: field, you browse to the location of the browser executable. In this case, that’s Chrome.exe. It could just as well be Firefox or any other browser.

The Add arguments (optional): field contains the parameters. The parameters are basically all of the web pages you want the browser to open automatically for you. So, if you type, “//” (each separated by a space) – the browser will launch and open those three websites.


This is one of the simplest and fastest ways to let your computer do all the heavy lifting in the morning, and all you have to do is sit back and enjoy a few websites while you sip on your coffee.

3. Journal How You’re Feeling Every Day

Rob has written before how important journaling is Start this Simple Habit to Rocket Your Productivity: Journaling Journaling is an underrated career tool and a core habit of many successful people. From increasing productivity, to maintaining accountability, we explore why you should consider introducing journaling as a productivity tool into your workday. Read More , but it’s also one of the easiest things to forget to do every day. That’s why using your Windows Task Scheduler for something like this is a no-brainer!

To set this up, you’ll need to make use of a Visual Basic Script How to Automate Telnet Commands Using VB Script Writing batch jobs and more recently Windows scripts is an activity that really makes up the bulk of how the large majority of network and system administrators do their jobs faster, and simplify what would... Read More (VBS) saved somewhere on your computer where you can call it from the Task Scheduler. The VBS script will basically prompt the user (you) for your journal inputs, and then it’ll append those to a CSV file that’ll store the log of your daily stats.

Here’s the script. Just copy and paste it into a text file and save it as “logtoexcel.vbs”.

Option Explicit

Dim strMood
Dim strWeight
Dim strExercise
Dim strDiet

' Prompt for mood, weight, exercise, diet

strMood = Inputbox( "Happiness Level (1-10):" )
strWeight = Inputbox( "Enter today's weight:" )
strExercise = Inputbox( "How many minutes did you work out?:" )
strDiet = Inputbox( "Do you feel like you ate well today?:" )

Dim objFSO, objFolder, objShell, objTextFile, objFile
Dim strDirectory, strFile, strText
strDirectory = "c:\temp"
strFile = "\MyDailyLog.csv"
strText = strMood & "," & strWeight & "," & strExercise & "," & strDiet

' Create the File System Object
Set objFSO = CreateObject("Scripting.FileSystemObject")

' OpenTextFile Method needs a Const value
' ForAppending = 8 ForReading = 1, ForWriting = 2
Const ForAppending = 8

Set objTextFile = objFSO.OpenTextFile _
(strDirectory & strFile, ForAppending, True)

' Key Section to write the strText to the file.
' Writes strText every time you run this VBScript


When this .vbs file is launched, first it’ll prompt you for all of the factors you want to track. In this example I used mood, weight, exercise, and diet.


These answers are stored to variables, and then passed to your output file, which in this example is stored in c:/temp/.

First, create the MyDailyLog.csv there and create the header in the first row. Once you’ve got this file created, it’s ready to start collecting your journal entries!


Just create a new task (like you did in the first section of this article), and for the task, set it to run the script where you saved the .vbs file.


Set up the task to run every evening when you’re usually online reading the news or checking your email, and you’ll never forget to track your stats again!

4. Play Music in the Morning

Does your alarm clock 3 of the Most Hilariously Annoying Alarm Clock Apps for Android Here are some of the wackiest alarm clock apps for Android. Maybe they'll annoy you, or maybe they'll help wake you up! Read More do a terrible job of waking you up every day? Do you hit snooze and then just go back to sleep? Well, here’s a solution using Task Scheduler. Just configure it to trigger a song that you know will wake you up.

The command to do this on any Windows PC is: wmplayer “c:\songname.mp3”

Set up your new task to kick off this loud and upbeat song about half an hour before you want to wake up.


You will notice that you need to give the full path for wmplayer.exe (using the Browse button will make this more convenient). Then, in the Add arguments (optional): field, provide the full path to your music file, in quotes.

And if that music 30 minutes before you want to wake up doesn’t work, set up another task to kick off an even more obnoxious song for 15 minutes before you want to wake up.  Finally, another only 5 minutes before (maybe that one should be a loud, blaring horn!).

Do note: You will need to configure the task to run even if the computer is asleep, and you’ll need to make sure not to turn your computer off at night when you go to bed. If it goes to sleep, it’s fine, but the computer does need to be on for this task to work!

By the way, if you just want to kick off a full playlist How to Create, Share & Discover Playlists with Apple Music Playlists make it easier to discover, share and create your own personal collections from Apple's massive library of streaming music. Here's how. Read More of songs 30 minutes before you get up, you can use this command: wmplayer /Playlist PlayListName

5. Play a Video Every Morning

Here’s another approach to waking up, if you’re like me and sound doesn’t cut it for you. Why not hook up your laptop to that big TV in your room and kick off a video How to Watch Entire YouTube Playlists in VLC Do you love YouTube playlists, but wish you could watch them outside your browser? You can use VLC for the job, thanks to a simple extension. Here’s how. Read More in the morning to wake yourself up? This allows you to choose the sights and sounds that you know will get you out of bed.

One way to do this is exactly like the audio scheduled task above, but using the fullscreen option: wmplayer “c:\videoname.wmv” /fullscreen


In the arguments field, just remember to keep the file name inside the quotes, and the /fullscreen switch outside of them, at the end of the string.

The same rule as the audio applies – set the task to run even when the computer is asleep, or it won’t work – and don’t forget to leave your computer turned on overnight.

6. Take Monthly Backups to the Cloud

I bet you store lots of files on your PC or laptop that you’d absolutely hate to lose. Maybe it’s your collection of saved music files (which you’re constantly adding to), or maybe it’s that big novel 6 Must-Listen Podcasts For Novelists, Screenwriters & Storytellers Are you stuck in a writing slump? Have you ran out of story ideas? Are you puzzled and confused over the publishing industry? Do you need guidance on becoming a professional wordsmith? There are lots... Read More you’re working on. Whatever the data is, it’s a very good idea to take frequent backups, just in case something terrible happens to your PC.

Taking backups is one of the best things Scheduled Tasks is suited for, but why save to a local hard drive when you could save your files to the cloud? One clear advantage of this is that if there’s – heaven forbid – a house fire, your information is still safe.

The first step to set this up of course, is to install OneDrive, Google Drive, or any other cloud storage service that lets you install it on your PC as a mapped drive How To Synchronize Files On Ubuntu With OneDrive Microsoft just bumped up the amount of free storage you get with OneDrive, so you might want to use it on your favorite Linux distribution. However, Microsoft doesn't have an official client for Ubuntu. Read More .


Next, install SyncToy from Microsoft. Then, set up a folder pair between your local folder where your favorite music is stored, or where you’ve got that special novel you’re working on, and the drive in your cloud drive where you want to back up those files on a regular basis.


On the next screen you’ll choose to either synchronize or contribute. If you sync then changes go in both directions. If you set up contribute, then only new files on your local drive will go to the cloud, but files you delete won’t get deleted from the cloud. Finally, give the folder pair a name.

Now, all you have to do is run this command as a scheduled task: c:\program files\synctoy 2.1\synctoycmd.exe -R “SyncMyMusic”

Here’s what that looks like in the Task Scheduler:


Put the Program/script: field all in quotes, and for the arguments field you’ll want -R first, and then the folder pair name you created above, placed in quotes.

Set this task to run every day — or whatever frequency makes you feel safe — and you’re all done. Forget about it, you’ll always have a synced copy of your files safe in the cloud!

7. Post to Facebook and Twitter

Sure, FBCMD is dead, but you can still post to Facebook from the command line using Curl. If you haven’t done this yet, I highly recommend following my guide to set up Curl on your PC How to Post to Facebook From Command Line Now That FBCMD Is Dead Imagine opening up a command window on your PC, typing a single line command, and posting instantly to Facebook without even opening up a browser or other app. Read More so you can issue Facebook posts via command line.

Once you’ve got it set up, you can post to Facebook from the command line using: c:\temp\curl\curl -X POST<enter-your-key-here>?value1=”This%20is%20your%20post.”

Now think how cool it would be if you didn’t even have to open up Facebook to post – just set up a .vbs script like you did above for journaling, but have it ask you what you want to post, and let your computer do your Facebook posting for you!

Here’s what that .vbs script looks like:

Option Explicit

Dim strYourPost
Dim objResult
Dim objShell

strYourPost = Inputbox( "What do you want to post today?:" )
strYourPost = Replace(strYourPost, " ", "%20")

Set objShell = WScript.CreateObject("WScript.Shell")    
objResult = objShell.Run("c:\temp\curl\curl -X POST" & strYourPOst)


Then, simply use Scheduled Task to schedule the script to run when your computer first starts up, or at 8 am every morning when you’re having your coffee.


And in seconds your post will get posted to Facebook, and you won’t get distracted by all of the cat posts.


This is a great way to simplify life, while keeping your family and friends updated without letting the social network eat away at your productivity.

By the way, you can do the same exact thing with Twitter, using a program called Twt.

Once you have that application installed, Tweeting from the command prompt is as simple as typing: twt I’m posting this from the command prompt!

There’s no need for a vbs code in this case because you can just schedule a task using “twt” as the command, and your Tweet in the argument field. Simple!

Using the Task Scheduler

As you can see, the Windows Task Scheduler is good for a whole lot more than just scanning your PC or doing local backups. Sending email, accessing the cloud, posting to Facebook and Twitter — these are just the tip of the iceberg.

If you can make it happen in a command line or a Windows script, you can schedule it with the Task Scheduler. All it takes is a bit of creativity and some elbow grease, and you can automate a whole lot more than you ever imagined.

Hopefully the above automations helped you start thinking about things you can schedule in Windows. What other ideas do you have? Have you ever automated anything interesting with the Task Scheduler? Share your thoughts and experiences in the comments section below!

Image Credits:Industrial robot by PP77LSK via Shutterstock

Related topics: Computer Automation, Productivity, Windows Task Scheduler.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Hamid
    July 15, 2018 at 6:41 pm

    I need to open a software but I just want to open another tab of the software that is not a default window, something like opening a word office document but when it will be open be in layout view not general file view. could you please help me?

  2. Vinod kumar chittoor
    January 25, 2018 at 3:10 pm

    Very use full info.
    Thanks for sharing.

  3. TKG
    October 17, 2017 at 6:47 am

    How about a task that mutes your volume when headphones are taken out.
    I couldn't find the event of the headphones being unplugged.

  4. G
    July 20, 2017 at 11:29 pm

    Key included in script? Did you include your facebook guid / key as part of the script?

  5. Chaitanya
    July 13, 2017 at 7:10 am


    Very informative data, Thanks...!

    i need to hit F5 instead of Fullscreen in Point.5

    Could you pls help on it.

  6. Anonymous
    December 1, 2015 at 6:43 am

    Forgot to mention that this also works to eliminate the annoying Windows UAC popup when launching programs that require full admin privileges even if you are already an Administrator on the PC. Of course, you only want to use this technique for applications you know to be safe.

  7. Anonymous
    December 1, 2015 at 6:37 am

    No list of nerdy things to do with Windows Task Manager is complete if it doesn't include elevating the user level to run applications from restricted accounts. There are instructions on this all over the net, but the basic idea is to create a task in WTM, set the desired action, checking the box that says "Run with highest privileges", but not defining a trigger. Now you can execute your app from the command line like this...

    schtasks /run /TN “taskname”

    This is particularly useful for applications like Skype that don't work properly unless run as Administrator. Using this trick you can create a desktop shortcut that executes the command above. If you want you can set the shortcut icon to the one from the application you are running. This way the user won't even know they aren't running the application directly. I had to do this to keep my idiot sister-in-law from compromising my whole LAN by falling for one of the "Microsoft Support" scams again. By the time I realized what she was doing the first time she had already downloaded and installed the "repair program" the scammer told her to, and her PC's CPU and hard disk were running at 100% as they sucked her data ASAP. I yanked the cord, reformatted and reinstalled everything, but only created a standard account for her this time. The problem was that Skype just wouldn't run as a standard user, so I put a shortcut for it on her desktop using this trick. Works perfectly and now I don't have to worry about her installing malicious programs without my knowledge.