Import Task to Task Scheduler in Windows

    Import Task to Task Scheduler in Windows

    How to Import a Task to Task Scheduler in Windows

    Published by BrinkCategory: Backup & Restore
    28 Sep 2016 Last Updated: 20 Mar 2017 at 17:45

    Published by


    Brink's Avatar
    Administrator

    Posts: 24,454

    Show Printable Version 


    How to Import a Task to Task Scheduler in Windows

    information   Information
    The Task Scheduler enables you to automatically perform routine tasks on a chosen computer. The Task Scheduler does this by monitoring whatever criteria you choose to initiate the tasks (referred to as triggers) and then executing the tasks when the criteria is met.

    You can import an exported task, which will add the imported task to a task folder and allow you to use and run the task. A task's properties, triggers, actions, conditions, and settings are represented in an XML file.

    This tutorial will show how to import a task to Task Scheduler from an exported task .xml file in Vista, Windows 7, Windows 8, and Windows 10.


    CONTENTS:





    Import Task to Task Scheduler in Windows OPTION ONE Import Task to Task Scheduler in Windows
    To Import a Task in Task Scheduler

    1. Press the Win+R keys to open the Run dialog, type taskschd.msc, and click/tap on OK to open Task Scheduler.

    2. Navigate to the task folder location (ex: "Task Scheduler Library") in the left pane for where you want to import the task to, and click/tap on Import in the far right Actions pane. (see screenshot below)

    Click image for larger version. 

Name:	Import_task-1.png 
Views:	95 
Size:	51.5 KB 
ID:	103572

    3. Browse to the location you saved the exported task, select the .xml file, and click/tap on Open. (see screenshot below)

    Click image for larger version. 

Name:	Import_task-2.png 
Views:	124 
Size:	28.5 KB 
ID:	103573

    4. Click/tap on OK. (see screenshot below)

    Name:  Import_task-3.png
Views: 1233
Size:  23.5 KB

    5. If you have Run whether user is logged on or not checked above, then you will be prompted to enter your credentials for running the task with. Click/tap on OK. (see screenshot below)

    Name:  Import_task-4.png
Views: 1233
Size:  14.0 KB

    6. The task will now be imported into the task folder in Task Scheduler. (see screenshot below)

    Click image for larger version. 

Name:	Import_task-5.png 
Views:	106 
Size:	69.7 KB 
ID:	103576






    Import Task to Task Scheduler in Windows OPTION TWO Import Task to Task Scheduler in Windows
    To Import a Task in Command Prompt

    Note   Note
    You must be logged in as an administrator to be able to do this option.

    For more details about the schtasks and schtasks /Create commands, see: Schtasks.exe (Windows)


    1. Open an elevated command prompt.

    2. Type the command below into the command prompt, and press Enter. (see screenshot below step 3)

    schtasks /Create /XML "full path of .xml file" /TN "task folder location\task name" /RU "Computer name\User name" /RP *


    Note   Note
    Substitute full path of .xml file in the command above with the actual full path of the task's exported .xml file.

    Substitute task folder location in the command above with the actual task's folder location (ex: "") like in Task Scheduler below.

    Substitute task name in the command above with the actual task's name (ex: "Create Restore Point on Schedule") like in Task Scheduler below.

    Substitute Computer name in the command above with the actual computer name (ex: "W10BrinkDesktop").

    Substitute User name in the command above with the actual user name (ex: "Brink") of the account you want to run the task as.

    For example:

    Code:
    schtasks /Create /XML "%UserProfile%\Desktop\taskname.xml" /TN "%UserProfile%\Desktop\taskname.xml" /RU "W10BrinkDesktop\Brink" /RP *

    3. Enter the password of the account you specified to run the task as, and press Enter. (see screenshot below)

    Click image for larger version. 

Name:	Import_task_command.png 
Views:	124 
Size:	23.0 KB 
ID:	103571

    4. When finished, you can close the command prompt if you like.

    5. The task will now be imported to the specified task folder in Task Scheduler. (see screenshot below)

    Click image for larger version. 

Name:	task_info.png 
Views:	102 
Size:	82.9 KB 
ID:	103577


    That's it,
    Shawn


  1.    28 Aug 2017 #1
    Join Date : Jul 2017
    Posts : 35
    windows 10

    here is how you can bulk export all tasks:
    create a folder named "all tasks" on desktop

    run that in powershell as admin (change the path bellow)
    Code:
    Get-ScheduledTask | foreach {Export-ScheduledTask -TaskName $_.TaskName -TaskPath $_.TaskPath |Out-File (Join-Path "C:\Users\Me\Desktop\all tasks" "$($_.TaskName).xml")}


    credit

    Anyone knows how to import all tasks from this folder?
      My ComputerSystem Spec

 


Similar Threads
Tutorial Category
Backup & Restore Export Task from Task Scheduler in Windows
How to Export a Task from Task Scheduler in Windows The Task Scheduler enables you to automatically perform routine tasks on a chosen computer. The Task Scheduler does this by monitoring whatever criteria you choose to initiate the tasks...
Tutorials
Task Scheduler run task when logged in Remotely
Hey everyone I tried using this guide (How To Easily Send Emails From The Windows Task Scheduler) to create a task that will send me an email whenever someone connects with RDP.The task works and sends the email if i run it, but i am unsure how to...
General Support
How to show Command Prompt Window when running task in Task Scheduler?
Is there a way to make the "Command Prompt" window show when I have a task running in Windows task Scheduler? I would like to be able to view the progress of the task. For example, I have a program called "Zap2xml" that collects TV EPG data. It...
General Support
Windows 10 Task Scheduler not finding Admin
I've got 2 users on one machine. One "Standard" user and one "Administrator". They both log in fine. The Admin user has a password assigned, the Standard user does not. I am trying to run a program that requires elevated access on logon of the...
General Support
Solved Time Zone change causes error in Task Scheduler for every task
My issue is kind of strange. I am an insider currently on Windows 10 build 10240. All the build I have tried so far has this same error in task scheduler when I change my time zone to my current location which is kathmandu (UTC+5:45). When i change...
Performance & Maintenance
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 23:35.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums