Solved

Export Scheduled Task from XP to Windows 2008

Posted on 2012-03-12
8
1,737 Views
Last Modified: 2012-03-16
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.
0
Comment
Question by:Professor_MB
  • 3
  • 3
8 Comments
 
LVL 9

Assisted Solution

by:Frank McCourry
Frank McCourry earned 250 total points
ID: 37709644
0
 

Author Comment

by:Professor_MB
ID: 37713317
I do not know use of powershell. could you give me a step by step, what needs to be done.
0
 
LVL 9

Expert Comment

by:Frank McCourry
ID: 37714713
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".
0
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 

Author Comment

by:Professor_MB
ID: 37723409
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 <<<<
}
0
 

Author Comment

by:Professor_MB
ID: 37723461
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
0
 
LVL 9

Expert Comment

by:Frank McCourry
ID: 37724291
Can you post the script exactly as you have run it?
0
 
LVL 28

Accepted Solution

by:
Michael Pfister earned 250 total points
ID: 37724768
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.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question