• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1890
  • Last Modified:

Export Scheduled Task from XP to Windows 2008

I am replacing a windows XP machine with Windows 2008.
I have lot of scheduled task in Windows XP SP2 machine and I want to copy them to windows 2008 machine.
How can I do that without re creating the tasks in windows 2008 machine.

Thank you.
  • 3
  • 3
2 Solutions
Frank McCourryV.P. Holland Computers, Inc.Commented:
Professor_MBAuthor Commented:
I do not know use of powershell. could you give me a step by step, what needs to be done.
Frank McCourryV.P. Holland Computers, Inc.Commented:
That article is a step by step.  Powershell is nothing to fear, think of it as a command prompt on steroids.  You can always type "help".
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Professor_MBAuthor Commented:
WHile running its giving below error.  I have replaced my remote servername

Exception calling "Connect" with "1" argument(s): "The network path was not found. (Exception from HRESULT: 0x80070035)
At C:\New\script1.ps1:2 char:13
+ $sch.Connect( <<<< "MyRemoteServer")
Exception calling "GetFolder" with "1" argument(s): "This operation is supported only when you are connected to the ser
ver. (Exception from HRESULT: 0x800704E3)"
At C:\New\script1.ps1:3 char:24
+ $tasks = $sch.GetFolder( <<<< "\").GetTasks(0)
Get-Member : No object has been specified to get-member.
At C:\New\script1.ps1:4 char:19
+ $tasks | Get-Member <<<<
Professor_MBAuthor Commented:
I found the in msdn link that /XML option not available for schtasks.exe in XP and 2003.
Could someone assist me exporting these Windows XP Scheduled tasks to Windows Vista/2008
Frank McCourryV.P. Holland Computers, Inc.Commented:
Can you post the script exactly as you have run it?
Michael PfisterCommented:
For exporting to XML you have to run schtasks remotely from a Windows 7/Server 2008 machine command prompt.
If both machines are on the same domain, its easy. Just make sure the user is on the admin group on both sides.
If not, connect to the c$ drive (i.e. net use * \\<xpmachine>\c$ /user:<xpmachine>\<localuser>) from the 2008 to the XP machine and then run the schtasks export job like written in the link provided by frankmcc.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now