Answered How to convert a scheduled task from Xp to vista

  • 13 มกราคม 2552 14:22
     
     
     I was very surprised when I noticed that Vista cannot read and use the
    scheduled tasks with .job extensions, those of windows xp. I made some
    searches on google but it seems there is no way and no tool to translate
    those .job tasks to the new format used in Vista.
    Any suggestion ?
    The problem arises from some database administration tools I use and that
    probably are not completely compatible for Vista. If I schedule a backup with
    them a .job file is created but Vista cannot do anything with it.

ตอบทั้งหมด

  • 15 มกราคม 2552 2:33
    ผู้ดูแล
     
     คำตอบที่เสนอ
     

    Hi,

     

    The mechanism of Task Scheduler in Windows Vista/Server 2008 is different from that in previous systems. We cannot import .job files to Task Scheduler into Windows Vista . In addition, we have no way to convert .job files to .xml files. Therefore, we cannot run schedule tasks created on previous systems on Windows Vista/Server 2008. We need to recreate these tasks on Windows Vista. After that, we can export these tasks and import them to other Windows Vista/Server 2008 systems.

     

    For more information about Task Scheduler in Windows Vista/Server 2008, please refer to the following articles:

     

    Task Scheduler 2.0

    http://msdn.microsoft.com/en-us/library/bb756979.aspx

     

    Task Scheduler Overview

    http://technet.microsoft.com/en-us/library/cc721871.aspx

     

    Hope it helps.

     

    Tim Quan - MSFT

    • ทำเครื่องหมายเป็นคำตอบโดย Tim QuanModerator 19 มกราคม 2552 2:23
    • ยกเลิกการทำเครื่องหมายเป็นคำตอบโดย Tim QuanModerator 18 เมษายน 2554 7:00
    • เสนอเป็นคำตอบโดย Tim QuanModerator 18 เมษายน 2554 7:00
    •  
  • 14 พฤษภาคม 2552 20:30
     
     คำตอบที่เสนอ

    I've been looking for a way to convert the scheduled tasks from a 2003 server to 2008 and have only found the above answer multiple times.  The fact that there is no backward compatibility or conversion/import method to do this is less than unacceptable.  Having to recreate over 400 scheduled tasks because Microsoft is either too lazy or short-sighted to account for this necessity shows a serious disregard for their customer base.  Hopefully I am ranting for no reason and a method has been developed since this posting, in which case I apologize.  However, if a process is not available then please pass on my displeasure to Microsoft by whatever means you have availabe as I have also already done via my MSDN Subscription, Microsoft Software Rep, etc.

    • เสนอเป็นคำตอบโดย Dadydun31130 26 พฤษภาคม 2552 15:35
    •  
  • 26 พฤษภาคม 2552 15:43
     
     คำตอบ
    If you run schtasks from the vista/2008 server maching you can export the xp/2003 schtasks to xml.  schtasks /query /s xpmachine /tn taskname /XML > taskname.xml then you can import it. not perfect but can save time.  i exported the tasks using /fo table opened that to excel deleted unneeded columns and created a batch file to dump the xmls then /create /xml xmlfile.xml to import the xmls to the new server.  hope this helps. 
    • เสนอเป็นคำตอบโดย Dadydun31130 26 พฤษภาคม 2552 15:43
    • ทำเครื่องหมายเป็นคำตอบโดย Tim QuanModerator 18 เมษายน 2554 7:00
    •  
  • 26 พฤษภาคม 2552 18:33
     
     
    Thanks Dadydun.  Unfortunately we already went the the process of moving by hand cause the had to be done.  I will definately keep this in mind the next time we need to do something like this.  Still frustrated that Microsoft wouldn't supply a better mechanism for this.
  • 3 พฤศจิกายน 2552 7:18
     
     
    Dadydun31130

    Well, that was a clean solution to my problem!

    Thanks a heap!!!


    Dale
    Auckland
    New Zealand
  • 28 ธันวาคม 2554 22:29
     
     

    Windows server (DOS promt ver) [Version 5.2.3790] failes to convert to XML.

    Here is what I get in my DOS window.


    C:\Documents and Settings\dlawrence>schtasks /query /s galpftpmove /fo xml /nh >
    > C:\Duane\GalpFtpMove.xml
    ERROR: Invalid syntax. 'xml' value is not allowed for '/fo' option.
    Type "SCHTASKS /QUERY /?" for usage.

     


    Duane Lawrence
  • 28 ธันวาคม 2554 23:31
     
     
    If you type
    schtasks /query /?
     
    you'll see XML isn't a valid option for /FO. It says to use /XML.
     
    --
    ..
    --
    "duanelawrence" wrote in message
    news:bf2aa8f3-fb37-49a1-a052-a645a0b940f3...
    > Windows server (DOS promt ver) [Version 5.2.3790] failes to convert to
    > XML.
    >
    > Here is what I get in my DOS window.
    >
    >
    > C:\Documents and Settings\dlawrence>schtasks /query /s galpftpmove /fo xml
    > /nh >
    >> C:\Duane\GalpFtpMove.xml
    > ERROR: Invalid syntax. 'xml' value is not allowed for '/fo' option.
    > Type "SCHTASKS /QUERY /?" for usage.
    >
    >
    >
    >
    > --------------------------------------------------------------------------------
    > Duane Lawrence
     
     
  • 25 มกราคม 2555 10:55
     
     

    When I try this from Windows Server 2008 R2, where Schtasks supports the /XML option, to get the tasks from a Windows Server 2003 machine, where it doesn't, I get "ERROR: The request is not supported."

    ----------------------------------------------------------------------------------------------------------------------------------------------

    Penny, Amsterdam

  • 28 มกราคม 2556 15:51
     
      มีโค้ด

    This is not working. Getting access denied. I am using a domain administrator account to logon to a Win7 machine and attempt to export a WinXP scheduled task to an XML file. Both Win7 and WinXP machines are domain computers.

    C:\Users\guser>schtasks /query /s va33100xp /tn ServiceRestartBogus /XML > c:\temp\taskname.xml
    ERROR: Access is denied.


    • แก้ไขโดย George Perkins 28 มกราคม 2556 15:51 fix typo
    •