Script to migrate scheduled tasks from Windows XP/Server 2003 to 7/Server 2008

Based on http://www.digitalforensics.be/blog/?p=205Script to migrate scheduled tasks from Windows XP/2003 to Windows 7/2008 task scheduler. Provides an alternative,if running "schtasks /query /s" from the Win 7 machine connecting to the XP machine remotely is not an option.

 
 
 
 
 
2.5 Star
(2)
5,642 times
Add to favorites
Operating System
1/3/2012
E-mail Twitter del.icio.us Digg Facebook
  • Errors when importing to 7
    2 Posts | Last post February 10, 2016
    • First off, thank you for making this awesome script. once i iron out my issue it'll save me so much time.
      
      Anyway, it exports from XP perfectly. But when importing into 7 when i enter my username (no password so i leave it blank) i get the following errors:
      
      ERROR: The specified task name "'Adobe Flash Player Updater'" does not exist in the
      ERROR: The specified task name "'AppleSoftwareUpdate'" does not exist in the system
      ERROR: The specified task name "'SyncBack My Docs'" does not exist in the system.
      
      they do infact exist in the fold i specified earlier. So what is it i am doing wrong?
    • HellBringer616, I too got the same error and I edited the script as christaylor555 suggested and the script ran as expected.
      
  • This script also worked on w2k12 and w2k12R2
    2 Posts | Last post February 02, 2016
    • Based on my local test, this script also worked on w2k12 and w2k12R2.
    • Also, the script will not copy execution file
  • After migration problem with Windows 7 scheduled tasks
    1 Posts | Last post September 12, 2013
    • Hi,
      I used this script and it worked fine. Thank you very much.
      Unfortunately now I have a problem with the task scheduler in Windows 7 and couldn't find a solution in several forums:
      All tasks, that are scheduled during a stand-by or hibernation period are launched right after wake up, although this option is not set.
      So my question here is: Can this migration procedure create this kind of trouble?
  • Just want to say TY!
    2 Posts | Last post September 12, 2013
    • I just want to say thank you for the script Dirk_74. With christaylor555 fix I was able to move all my scheduled tasks in minutes. So much time has been saved because of this. Thank you very much!
    • Cool stuff! Does it work for moving tasks from one 2008 server to another 2008 server?
  • The specified task name "x'" does not exist in the system.
    2 Posts | Last post June 06, 2012
    • I am getting the same errors when running this. I get this line for every task I have copied.
       The specified task name "" does not exist in the system.
    • I was able to fix this by modifying the script.
      Change:
      $taskName="'" + $task.Name.substring(0,$task.Name.Length-4) + "'"
      To:
      $taskName=$task.Name.substring(0,$task.Name.Length-4)