Link to home
Create AccountLog in
Windows Vista

Windows Vista

--

Questions

--

Followers

Top Experts

Avatar of Peter044
Peter044

Unable To Import Tasks
I have just upgraded from a desktop running Vista to a laptop running Vista.  They were different versions of Vista, but I am not sure which was which.  The big difference that I've noticed is that the new machine is running 64 bit OS and the old one was 32 bits, which is causing some of my old applications not to run.

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.


Avatar of qz8dswqz8dsw🇳🇿

The error is indicating theres a problem with line 1 of your XML tasks.
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?

Avatar of Peter044Peter044

ASKER

Hi,

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
Morning-Edition--Weekdays-.txt

Avatar of qz8dswqz8dsw🇳🇿

How did you try to export it from your vista Desktop?
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.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of qz8dswqz8dsw🇳🇿

Also as per http://social.technet.microsoft.com/Forums/en-US/itprovistamigration/thread/76b6276b-49f2-41e2-b4ea-f537e0eb88a8

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.

Avatar of qz8dswqz8dsw🇳🇿

Also as per my link (second to last comment) you could try this command on your new vista box.
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.

Sorry - just got back.

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

Free T-shirt

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.


Avatar of qz8dswqz8dsw🇳🇿

Hi Peter,

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.



ASKER CERTIFIED SOLUTION
Avatar of qz8dswqz8dsw🇳🇿

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Huge effort - much appreciated.

Avatar of qz8dswqz8dsw🇳🇿

Cheers Peter,
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. The Other option for XP, 2003 etc creates not only the XML, but a job file in c:\windows\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

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Cheers Terry.  We'll pay that.

Peter

Avatar of qz8dswqz8dsw🇳🇿

Considering I'm in New Zealand I might take you up on that some day. LOL! :)
Have a good one.
Windows Vista

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.