Windows Vista
--
Questions
--
Followers
Top Experts
I had a number of tasks (as in Task Scheduler) saved by exporting them from the Task Scheduler so they could be imported to the new machine. However, when I try and import them, I get an invalid format message. Specifically:
"The format of the task is not valid. The following error was reported: (1,2)::"
I am unable to figure out what the error message means. The default extension the Task Scheduler is looking for is XML, while the saved format of the tasks is JOB, which the OS recognizes as a Task Scheduler Object.
Can anyone tell me how to import these tasks into the upgraded Task Scheduler?
Thanks,
Peter
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
When you export your tasks it should most definately create am XML file you can load into notepad or the such.
Any chance you could upload a basic xml file thats failing to import?
Thanks for your reply. The original export did not produce XML files, but these JOB files. I've uploaded one as an example though. It would be fantastic if that were the fix.
I've had to change the extension on the file to .TXT from .JOB to get it to upload here.
Peter
On my Vista Home, I right click on the task and select export.
It's default format for saving it is XML and as you note it most definately is not XML.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
There does not seem to be any native method for Vista to import job files.
I still find it interesting you got job files from your original export on your old vista machine.
schtasks /query /s xpmachine /tn taskname /XML > taskname.xml
So for each of your tasks it would connect to the machine called xpmachine, and export the task called taskname to a file called taskname.xml.
You might need to use the /U and /P parameters (for username and password) to connect to your old machine.
I'm not sure how either. To explain the complication, I had three machines at home. The one in question was some sort of a Vista upgrade from XP. I don't remember which flavor of Vista it was, but it seemed to act differently in several minor ways from my other machines. For example, it would always ask permission to run or change a task, even though it had administrative privs. It was an educational upgrade, but I don't recall if it was premium, home, office or whatever.
I can't do anything now as I'm on the road. The other machines are either packed or stored and the laptop I have is brand new, so connecting to the other machine is not really an option.
Was there anything recognizable in the files?
Peter

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
No worries,
For your first difference, thats actually pretty normal for Vista.
User Access Control (UAC) would have been enabled (which is the default), your other machines more than likely had it turned off.
Recognisable, Yes.
I could see that particular job ran up IE directing it to a URL. I have no idea on the frequency or when it was told to run.
Unfortunately it's not just a copy and paste of the bits you can read. (There are hex 00 characters after every character)
Heres an example of whats inside the job file if opened with Notepad.
C : \ P R O G R A ~ 1 \ I N T E R N ~ 1 \ i e x p l o r e . e x e
I still feel theres got to be some way, but running out of ideas.
Never knew it would be such an antiquated way especially since Vista suppots creating them for backwards compatability.
If you want to get rid of the old .job files don't just delete them (Vista will re-create them I think)
In the scheduled task you have a "configure for" option, The Vista or Windows server 2008 only creates XML files in c:\windows\system32\tasks.
Up to you as to wether you need the ability to edit these tasks from Windows XP/2003.
Think it's time for a beer, and Microsoft should pay.
Glad to have helped.
Terry






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Peter
Have a good one.
Windows Vista
--
Questions
--
Followers
Top Experts
Windows Vista is an operating system created by Microsoft as the successor to Windows XP. It was intended for PCs, workstations and laptops, and shares the same code base as its successor, Windows 7. New features included an updated graphical user interface (GUI) and visual style dubbed Aero, a new search component called Windows Search, redesigned networking, audio, print and display subsystems, and new multimedia tools. Vista aimed to increase the level of communication between machines on a home network, using peer-to-peer technology to simplify sharing files and media between computers and devices. Windows Vista included version 3.0 of the .NET Framework, allowing software developers to write applications without traditional Windows APIs.