[Fix] Can’t Create Tasks to Display Messages in Task Scheduler in Windows 8 and Later

NOTE 1: This tutorial was created specifically for Windows 8 but it should also work in previous Windows versions such as Windows 7, etc.

NOTE 2: This tutorial will also work in Windows 8.1 and later.

SUMMARY:

Task Scheduler is a built-in program in Windows OS which allows you to schedule tasks and reminders. In previous Windows versions you could create tasks to show messages, send emails or launch specific programs at scheduled time but Microsoft has removed the ability to display message and send email using Task Scheduler in Windows 8. Windows 8 Task Scheduler only allows you to create tasks which can launch programs, that’s it. Display message and send email features are now deprecated in Windows 8.

Advertisement

This tutorial will help you in getting these removed features back in Task Scheduler of Windows 8.

DESCRIPTION:

Personally I love “Task Scheduler” program in Windows. I have approx. 20 scheduled tasks in Task Scheduler and it helps me a lot in doing the things on time. I have tried many free task scheduling software in past but the built-in Task Scheduler of Windows is the best among all. Its very simple and easy to use and it does its task perfectly.

Also it allows you to backup and restore your tasks so that you don’t need to create the tasks again if you format Windows or want to set the same tasks on a new computer system. You can simply restore your tasks without any headache. We also posted a tutorial in past which helps you in restoring all your tasks quickly and easily in a single click. You can read the tutorial at following link:

How to Import (Restore) All Tasks in Bulk Using Task Scheduler in Windows?

I also have a backup of all my important tasks and I have created a batch script with the help of above mentioned tutorial to restore them quickly. Whenever I reinstall Windows, I restore all the tasks easily.

But the problem occurred when I tried to restore the tasks in Windows 8. When I ran the batch script, it showed following error message:

ERROR: The task definition uses a deprecated feature.

Advertisement

Task_Scheduler_Deprecated_Feature_Error_Message.png

I didn’t understand the problem at first so I decided to run the script as Administrator but no benefit. I double-checked the syntax of commands in the script, I checked each and everything but I got the same error every time I tried to run the script.

Then I decided to manually import the backup tasks using Task Scheduler program. I clicked on import tasks option and selected a task to restore but again Task Scheduler showed following error message:

An error has occurred for task Take medicine. Error message: The following error was reported: 2147750704.

Task_Scheduler_Error_Message.png

I was clueless why were the tasks not getting restored in Windows 8? I never had any such problem while restoring the same tasks using the same method in Windows 7. I tried to set the “Configure for” option of the task to Windows Vista or Windows 7 but it also didn’t help.

So I decided to investigate the issue and tried to create a new task manually in Windows 8 Task Scheduler and then I found the culprit. Actually Microsoft has removed 2 features from Task Scheduler of Windows 8:

  • Display a message
  • Send an e-mail

Now you can’t create a task in Task Scheduler of Windows 8 to show a message or to send an email. When you create a task and go to the “Actions” tab to set an action for the task, you see following:

Display_Message_Send_Email_Features_Deprecated_Task_Scheduler.png

As you can see both “Display a message” and “Send an e-mail” options show “(deprecated)” text which means both features have been removed from Windows 8. I can’t understand why did Microsoft remove these important features?

Now you can only start a program with Task Scheduler, you can’t set it to show message or send emails. That’s why when I was trying to import my tasks which were set to show message, Task Scheduler and batch script were showing error messages because this feature has been removed from Windows 8.

“Display a message” was an essential part of Task Scheduler. Without this feature Task Scheduler in Windows 8 is quite useless. We usually schedule a task to remind us about an important event and showing a message for that event is the easiest way to remind.

If you also use Windows Task Scheduler and if you are using Windows 8 but missing the show message feature, this tutorial will definitely help you.

Today in this tutorial, we are going to tell you a simple way to force Windows 8 Task Scheduler to show message for tasks.

HOW-TO INSTRUCTIONS:

Although Microsoft removed the feature to show message using Task Scheduler but we can use the built-in “Command Prompt” or “PowerShell” programs to show message in our tasks. We’ll set Task Scheduler to start PowerShell or Command Prompt as the program and will provide required commands to show our desired message as program’s arguments.

So without wasting time lets start the tutorial:

1. First of all open Task Scheduler. You can open it using Start Screen by just typing task and Windows will show Task Scheduler in search results. You can also directly launch it by runningย taskschd.msc command from RUN box.

2. If you want to create a new task, click on “Create Task” link given in right-side pane. If you want to import an existing task, click on “Import Task” link.

Now there are 2 different methods to show a message for the task:

  • Using Command Prompt
  • Using PowerShell

You can choose any of the 2 methods according to your requirements. We are sharing both methods:

METHOD 1: Using Command Prompt

To set the task action to display a message, go to “Actions” tab, click on “New” button (or click on “Edit” button if you are editing the imported task) and type msg in “Program/script” textbox and in “Add arguments” textbox paste following string:

* Your_Desired_Message

NOTE: You’ll need to replace Your_Desired_Message with the message which you want to show inside message box i.e. message body as shown in following screenshot:

Show_Message_Using_MSG_Command.png

That’s it. Now Task Scheduler will allow you to create or import the task without any problem. Whenever the scheduled time comes, you’ll see the desired message as shown in following screenshot:

Task_Scheduler_Message_Running.png

NOTE: If you want to directly modify the XML file of the task (which you got after exporting your tasks) to replace deprecated display message command with the new msg command, you can do it as well using following steps:

1. Open XML file and scroll down to bottom and you’ll see following piece of code:

<Actions Context=”Author”>
<ShowMessage>
<Title>Your_Message_Title</Title>
<Body>Your_Message_Body</Body>
</ShowMessage>
</Actions>

2. Just replace the above code with following:

<Actions Context=”Author”>
<Exec>
<Command>msg</Command>
<Arguments>Your_Message_Body</Arguments>
</Exec>
</Actions>

Again you just need to replace Your_Message_Body with your desired message. Save the XML file and you’ll be able to import it in Windows 8 Task Scheduler. Also the batch script will no longer show any error message.

METHOD 2: Using PowerShell

If you don’t want to use msg command or if the msg command doesn’t work for you, you can take help of PowerShell command.

When you open “Actions” tab, click on “New” button (or click on “Edit” button if you are editing the imported task) and type powershell in “Program/script” textbox and in “Add arguments” textbox paste following string:

-WindowStyle hidden -Command “& {[System.Reflection.Assembly]::LoadWithPartialName(‘System.Windows.Forms’); [System.Windows.Forms.MessageBox]::Show(‘Your_Desired_Message‘,’Your_Desired_Title‘)}”

NOTE: You’ll need to change only 2 things in the above mentioned string which have been given in bold letters. Replace Your_Desired_Message with the message which you want to show inside message box i.e. message body and replace Your_Desired_Title with the desired title which you want to show in message box titlebar.

Set_Powershell_Program_Task_Scheduler_Action.png

That’s it. Now Task Scheduler will allow you to create or import the task without any problem. Whenever the scheduled time comes, you’ll see the desired message as shown in following screenshot:

Task_Scheduler_Task_Running.png

You’ll also see a command prompt window for a second just before the task message is shown on screen, don’t worry its the main PowerShell window which we are using to show the message. Since we have set the window style to hidden in our task command, it shows and disappears within seconds. It should not be an issue at all.

NOTE: To directly modify the XML file of the task, just follow these simple steps:

1. Open XML file and scroll down to bottom and you’ll see following piece of code:

<Actions Context=”Author”>
<ShowMessage>
<Title>Your_Message_Title</Title>
<Body>Your_Message_Body</Body>
</ShowMessage>
</Actions>

2. Just replace the above code with following:

<Actions Context=”Author”>
<Exec>
<Command>powershell</Command>
<Arguments>-WindowStyle hidden -Command “&amp; {[System.Reflection.Assembly]::LoadWithPartialName(‘System.Windows.Forms’); [System.Windows.Forms.MessageBox]::Show(‘Your_Message_Body‘,’Your_Message_Title‘)}”</Arguments>
</Exec>
</Actions>

Again you just need to replace the 2 entries mentioned in bold with your desired message and title. Save the XML file and you’ll be able to import it in Windows 8 Task Scheduler. Also the batch script will no longer show any error message.

That’s it. I hope it’ll help Windows 8 users who were missing the display message feature of Task Scheduler…

Published in: Troubleshooting Guides, Windows 10, Windows 8

About the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He holds Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead.

  1. In the rest of the world, “deprecated” means “you’re on notice that we plan to remove this eventually.” In Microsoft it means “We’re now warning you that we already removed this without warning.”

    I guess this makes sense coming from the same people whose solution to “update notification popup wouldn’t play well with tablet-style apps” is “remove update notification altogether even on desktop” rather than “suppress popup but keep icon on desktop”.

    It doesn’t make so much sense coming from the same people who totally revamped the task manager, added and improved all sorts of views for driver, digital signature and crash/problem information, added sophisticated context-sensitive menus to the filesystem windows, and added the ability to reinstall the OS while keeping your programs! Are there two separate development teams in Microsoft now, one that’s learning from Linux Mint or something and another that’s enslaved to the caprice of the user experience nuts who forgot that desktop users still exist? I’m confused out of my mind!

  2. Method 1 does not work on windows 8.1 because msg has been deprecated as well.
    windows.microsoft.com/en-us/windows-8/what-happened-messaging
    I used Kelly’s suggestion as it seems very hassle free. I paste it here:
    Open notepad
    write:
    msgbox(“This is the task to do”)
    change the message to anything you want.
    save the file as a .vbs file so it will run on any windows machine and will be executable as a vbs script.
    Now set taskscheduler to the action – call a program and point it to that .vbs file.

  3. ^^ Thats different messaging app. The method is working fine here in Windows 8, 8.1 and Windows 10.

  4. ^^Can force message box to top by adding 4096 as follows:

    msgbox(“This is the task to do”),4096

    also, can avoid adding the .txt extension when saving your .vbs file by changing “Save as type” from Text document to All files in save window. ๐Ÿ™‚

  5. *****MISSED AN IMPORTANT NOTE*****

    YOU CANNOT USE WORDPAD, NOTEPAD, OR OPEN OFFICE TO EDIT AND SAVE AN XML DOCUMENT.

    The easiest way I figured out how to edit the .xml document and then be able to import it back into the task scheduler with no problems or conversions is by using one of two very simple and free utilities that you can download.

    These 2 utilities that can save a .xml document without having to do any conversions is
    Notepad 2
    and
    Notepad++

    Notepad 2 does not have to be installed, but can be run directly from the folder you extract the files into.
    Notepad++ must be installed onto the system, but in my opinion, it looks much nicer and easier to read and find what you’re looking for, and I believe that it’s known for being more versatile.

  6. Rob, I think you can send emails using cmd prompt.

    If so, then you should be able to do the task scheduler the same way as in this tutorial, except in the arguments, you’ll be using the appropriate commands in the command prompt to send it.

    You might have to export the task and edit the .xml file, as it may require more than one line of command to send an email.

    However, I’ve never tried that.

  7. Very Useful. I used message box to remind to see 20 feet away object for every 20 seconds to reduce eye strain during office time. It is really useful.

  8. Hi ,

    Could you share some insights on how we could get send an email working on Task Scheduler that displays the same error: An error has occurred for task SERVER Backup Successful task. Error message: The following error was reported: 2147750704.”

  9. Just create a Text Message with Notepad, save it to a location of your choice. Then in Scheduler set the Action to “start a program” then under “Program/script: click the Browse button, search for your saved notebook text file and select it. When the Schedule task runs it with open a Notepad Window with your message.

  10. the CMD methods cmd window only pops up for half a second, making me unable to read what it says. Does anyone have any solutions? adding @pause doesnt seem to work (since its XML based?).

  11. using windows 10. The method you have explained above is not working for me. No window with my message is popping up. If i run a vbs script as described by kelly it asks me with which program i want to open it with and then throws up a error. please help.

  12. Thank you so much! I used your steps to create frequent reminders to get up away from the computer to stretch.

  13. Using Method 1 and Kelly’s suggestion and with some further study I used below.

    Once you create notepad file go to:
    RUN
    type cmd
    goto directory you save file ( Example c:/users/coolm/documents )
    rename furnace.txt furnace.vbs
    exit

    Then copy and paste the next 2 lines into the document as an example; Change for your use.

    strMessage = “Furnace Filter needs changing! ”
    msgbox strMessage, 0, “Furnace Filter Task”

    Test the file just by double clicking it and you should see an example of the pop-up; Research the “msgbox values” you want to show. 0 above gives you the OK box.

    Now browse for this file in Method 1 above under (Program/Script) and setup your task as normal.

    Just a helping hand for anyone else coming in after me.
    3/27/2017

  14. awesome and amazing post!! the powershell ooption works for windows 10!! thanks man idk how u figured this out

    btw how can i get taskmgr to start automatically at log on?
    i have it in my “startup” listing in task manager itself as well as task scheduler but i cant get it to start automatically.

  15. I created the display message using the command prompt method. I don’t see this task listed in my Task Scheduler. How do I now turn if off/disable it/delete it?

  16. Thank you for the help! Sometimes Microsoft s**ks really bad and it’s great that there’s always someone who knows how to work around their terrible decisions.

  17. Thanks. I could not get msg to work but the powershell worked. I am using Win 10 32 bit. My firewall/antivirus started to block the command popup but I fixed that. The window pop-up – the reminder – is way small. Is there a way to make it larger?

    Thanks again – very useful

  18. Someone at Microsoft does not know what the word “deprecated” means.
    It does NOT mean a feature has been removed.
    It means a feature still exists, but use is discouraged, and often that the feature will be removed IN THE FUTURE.
    It absolutely, categorically, DOES NOT mean that the feature is disabled or removed.

  19. Didn’t worked yar, I am getting error like one or more of specified arguments are not valid

  20. I’m on 64bit Win10.
    My Results:
    – MSG = NOPE – Does NOT Work
    – POWERSHELL = YEP – Works like a charm

  21. Other places on the web concerning the use of the “MSG” command state that this is only available to versions of Windows that are NOT the “Home” version…such as Pro/Enterprise. ๐Ÿ™

  22. Yes Microsoft have done things in a weird way here. I think that they mean the commands are “deprecated” in the tools (but don’t mention that they are removed from the operating system that executes them). They’re still in the UI because the Task Scheduler tools support connecting to older operating systems so if you connect the tools to Windows Server 2008 R2 you can still enable the display a message and SMTP tasks.

Leave a Comment

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

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.