RepairTask run 130 errors; neither repair solved any issues, still 130 errors

Nov 22, 2016 at 12:16 AM
First off, I am grateful for the effort here at CodePlex from DIIJI.
I faced some issues, however, that I would like to share in hopes of some guidance.
I have Windows 7 Home Edition, and I too, had reversed a Windows 10 upgrade back to the original Windows 7. I learned with a recent attempt to back up my computer that I had a problem. I couldn't back up, receiving the "task image is corrupt or has been tampered with" (0x80041321).

I then went to check Task Scheduler and found numerous errors reporting.
  1. After finding this web resource, I followed instructions, created a "AAAAA" folder in Documents, copied in the exe and config files from Repair Tasks, and the zip file Windows7Tasks.zip, then attempted to run the exe file, as Administrator. It simply would not run -- I tried about 5 times (including shutting down my Avast Antivirus). I then ran my computer in Safe Mode, and the TaskRepair.exe then ran.
  2. The Scan returned a result of 130 problems. I then ran the Repair with "Recycle existing tasks", but there were no improvements. Next, I ran Repair with "Take tasks from backup". I followed the prompt to the zipped file location (I did not unzip it), and ran the Repair. Again, no improvements; still 130 problems registered.
I wanted to attach the Scan and Repair results but don't see an attachment option here. I will copy the Repair results below to the extent that the Discussion character limit (10,000) allows. I would appreciate any guidance or suggestions as to how to remedy these 130 problems in Task Scheduler, and how to address my original problem with Windows 7 Backup.

Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Adobe Flash Player Updater'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'avast! Emergency Update'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'CCleanerSkipUAC'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GlaryInitialize 5'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GoogleUpdateTaskMachineCore'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GoogleUpdateTaskMachineCore1d1ab1221bd5405'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GoogleUpdateTaskMachineUA'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GoogleUpdateTaskMachineUA1d1ab1222159a1b'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GoogleUpdateTaskUserS-1-5-21-261844474-1052255467-504413450-1000Core'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GoogleUpdateTaskUserS-1-5-21-261844474-1052255467-504413450-1000UA'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'GU5SkipUAC'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'HP AR Program Upload - 3cde6b24ed57428698bb33ff788bcb54abe0c8674b1f4d8a858733cb447d71ff'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'HP AR Program Upload - 4217cf6c70084cc28e0bca8d09e7eea3935234c3bd6145f2a26f2bc11aa40008'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'HP AR Program Upload - 715956d2d5a34819bca77684353d99a8f248d65ad58d4cc8b25ff1a24edd081b'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'HP AR Program Upload - 918a4fcb7933417392e5565848b893b832e3be07652e4a43b1a59dac277a51ee'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'HP AR Program Upload - bf4ed97e9b7643cdb9c0ccb11e27f7e19478785c68aa427fb974291499041df2'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'HP AR Program Upload - c09075ab77714031b05e124c223b85b8e07250212dff4c38a2c791931a4c44db'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Motorola Device Manager Engine'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Motorola Device Manager Initial Update'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Motorola Device Manager Update'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'SafeZone scheduled Autoupdate 1462375181'
Cannot extract task file 'User_Feed_Synchronization-{B989D172-5BD8-4879-93E5-1D7C1C5724B8}' from zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip': Part URI is not valid per rules defined in the Open Packaging Conventions specification.
Cannot extract task file '{3E0CB9E6-F023-4F6F-B0CB-8D7E716EB3F6}' from zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip': Part URI is not valid per rules defined in the Open Packaging Conventions specification.
Cannot extract task file '{85C04985-BAB3-456F-BFA6-1E603ECD4B9A}' from zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip': Part URI is not valid per rules defined in the Open Packaging Conventions specification.
Cannot extract task file '{B1D85BE2-1A89-4413-B416-C2D7A2619B64}' from zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip': Part URI is not valid per rules defined in the Open Packaging Conventions specification.
Cannot extract task file '{C689A4BE-78C0-450B-BC90-983AB65CA7DD}' from zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip': Part URI is not valid per rules defined in the Open Packaging Conventions specification.
Cannot extract task file '{DD53EC38-D7D5-420F-B6E9-7E2E66AB3BC5}' from zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip': Part URI is not valid per rules defined in the Open Packaging Conventions specification.
Cannot extract task file '{F2E2E233-0398-4E99-99BF-7E38FC65ACEC}' from zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip': Part URI is not valid per rules defined in the Open Packaging Conventions specification.
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'AVAST Software\Avast settings backup'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Hewlett-Packard\HP Active Health\HP Active Health Scan (HPSA)'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Hewlett-Packard\HP Support Assistant\HP Active Health Launcher'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Hewlett-Packard\HP Support Assistant\HP Support Assistant Quick Start'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Hewlett-Packard\HP Support Assistant\HP Support Solutions Framework Report'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Hewlett-Packard\HP Support Assistant\HP Support Solutions Framework Updater'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Hewlett-Packard\HP Support Assistant\HP Support Solutions Framework Updater - Resources'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Hewlett-Packard\HP Support Assistant\PC Health Analysis'
Recovery of task Microsoft\Windows\Active Directory Rights Management Services Client\AD RMS Rights Policy Template Management (Automated) failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\Active Directory Rights Management Services Client\AD RMS Rights Policy Template Management (Manual) failed with 'ERROR: The network address is invalid.'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Microsoft\Windows\AppID\EDP Policy Manager'
Recovery of task Microsoft\Windows\AppID\PolicyConverter failed with 'ERROR: The network address is invalid.'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Microsoft\Windows\AppID\SmartScreenSpecific'
Recovery of task Microsoft\Windows\AppID\VerifiedPublisherCertStoreCheck failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\Application Experience\ProgramDataUpdater failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\Autochk\Proxy failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\Bluetooth\UninstallDeviceTask failed with 'ERROR: The network address is invalid.'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Microsoft\Windows\CertificateServicesClient\AikCertEnrollTask'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Microsoft\Windows\CertificateServicesClient\CryptoPolicyTask'
Zip file 'C:\Users\rbn\Documents\AAAAATASK\Windows7 Tasks.zip' does not contain task file 'Microsoft\Windows\CertificateServicesClient\KeyPreGenTask'
Recovery of task Microsoft\Windows\CertificateServicesClient\SystemTask failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\CertificateServicesClient\UserTask failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\CertificateServicesClient\UserTask-Roam failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\Customer Experience Improvement Program\Consolidator failed with 'ERROR: The network address is invalid.'
Recovery of task Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask failed with 'ERROR: The network a
Coordinator
Nov 22, 2016 at 11:58 AM
Edited Nov 22, 2016 at 12:14 PM
Hi Arby 1

Yes, I too find it frustrating that there is no attachment option for discussions. Still, what you could fit in gives me a pretty clear picture of what is going on.
Your trace contains three types of error: “does not contain task file”, “Part URI is not valid” and “The network address is invalid”.

The first two types relate to running the repair using the zip file. The zip file contains only standard Microsoft defined tasks, and the first error is reporting that the task is not one of them. The second error is reporting that not only is the task not Microsoft defined, but it doesn’t have a name that would be valid if it were.

The last error is the most important. It signifies that the system is not in a state that will allow tasks to be registered. I would be willing to make a small wager that if you ran Repair without the zip file, all repair attempts would fail with this error.

So what do you need to do to fix it? The first thing to do is to check that the Schedule service is running. Go to Task Manager, select the Services tab, sort by the name column, and scroll down until you see the Schedule service. It’s Status should be Running. What do you see on your system?

FYI the error is actually being reported by the underlying system utility that Repair Tasks uses. You should be able to reproduce it by typing 'schtasks /query' at a command line. The most common cause of this problem is that the Schedule service is not running, as you will see if you Google the error message combined with 'schtasks'.

Dijji
Nov 22, 2016 at 10:00 PM
Hello Dijji, and thank you for your prompt reply and thoughts. I understand that the Repair Results were of 3 types, as described by you, and that the last is the most important. I will attempt to run Repair without the zip file to see if it returns the result that you venture. But, I am a little puzzled procedurally. My understanding is that the zip file referred to is the file: "Windows7 Tasks.zip"? How would I run Repair without the zip file? Does that mean run Scan, then run Repair using the button "Recycle existing tasks"?, or does it mean run Scan, then run Repair using the button "Take tasks from backup" but don't select the zip file?, or...? as you can see I am a little confused here.

Second, I checked the Services tab of Task Manager and confirmed that the Schedule service is "Running".

Thirdly, I went to the Cmd line and ran "schtasks/query", and it generated pages of results.

For the Services, Services "not running", Cmd "schtasks/query", and other RepairTask results, I could forward these to you as screen capture attachments, if it would be useful diagnostically and there were an address to which these could be forwarded?

I could not see any Service related to Windows Backup, nor any Tasks in Task Manager, and, Windows Backup is what originally led me to this effort.

Do you have any guidance to me on why RepairTasks will not run on my computer except in Safe Mode?

As you can probably tell, I feel like I have a limited understanding of this. Before getting your above reply, I was inclined to go back to point zero and reformat and install Windows 7 from my backup disk, after copying my data files to an exterior disc. Of course, I would like to avoid that long process of re-installation, updating and copying back the data files.

Regards, Rob
Nov 22, 2016 at 11:52 PM
OK, Dijji, I think I follow on the "wager" on Scan and Repair without Zip. On the the Scan and Repair (Recycle existing tasks), yes, all 130 entries reported 'ERROR: The network address is invalid.' Otherwise, same questions remain in my previous post above.

Rob
Nov 23, 2016 at 12:12 AM
And, Dijji, one more thing. I checked the Task error list against the "current list" of Windows 10 tasks left behind in the reversion from W10 to W7, and all 11 of the W10 tasks listed are in my Task errors.
Coordinator
Nov 23, 2016 at 2:56 PM
Hi Rob

Well, that is not entirely what I expected, but clear enough. Let’s dig in a little deeper by trying one semi manually, using the following steps:
  1. Open up Repair Tasks, and scan. Select the line for \Microsoft\Windows\Autochk\Proxy, and click on Unplug Task.
  2. Using Explorer, go to \Windows\System32\Tasks\Microsoft\Windows\Autochk, and copy the file Proxy to a temporary location, for instance c:\temp. Once the file is been successfully copied, delete it in \Windows\System32\Tasks\Microsoft\Windows\Autochk, or if your antivirus inhibits this, rename it to anything different. e.g. xProxy
  3. Open a command line with administrator privileges(type cmd in the search box, right click on the program that shows up, which should be cmd.exe, and click on Run as administrator).
  4. Enter the following command, amending 'c:\temp\Proxy' to the location of your copied file, as required
schtasks /create /tn \Microsoft\Windows\Autochk\Proxy /xml c:\temp\Proxy

This will attempt to reinstall the task. Let me know what results you get. The same procedure, by the way, can be used with any of the failing tasks. It is just a mostly manual version of what Repair Tasks does.

Dijji
Nov 25, 2016 at 4:18 AM
Hello Dijji. Because I have to go to Safe Mode (no access to Internet) to run the RepairTasks and go to normal mode to access the Internet, the process of repeatedly booting up to go back and forth is a bit tedious. I wish I could figure out how to run RepairTasks in normal mode rather than just Safe Mode. while in normal mode, I tried shutting down my anti-virus program (Avast) and that made no difference. I wonder what could be the problem for running in normal mode?

Anyway, here are the latest results. When I first went through the instructions, the result I got at the Command line was: Error: The network address is invalid. Being unsure of my input, I ran the Command again, this time cutting and pasting exactly your Command instruction -- that gave the following result:

\Windows\system32>schtasks /create /tn \Microsoft\Windows\Autochk\proxy /xml c:\Temp\Proxy

SUCCESS: The scheduled task “\Microsoft\Windows\Autochk\Proxy" has successfully been created.

After that, when I went back to run RepairTasks, I ran Scan and it returned only: 'Error the network address is invalid'.
When I then ran repair with Recycle existing tasks, it returned 0 succeeded.
When I then ran repair with Take tasks from backup, it returned 0 succeeded. and Proxy failed with Error: 'Error the network address is invalid'

Rob

My limited understanding of this... there is a task file in Task Scheduler and associated files in the registry. In reverting from W10 to W7, some of these may be have been jumbled, and some tasks from W10 that don't have an equivalent in W7 got left behind. The W7 Windows tasks should be recoverable from the zip file (but don't seem to be working in my case). The third-party tasks (Google, other utilities, etc.) probably need to be uninstalled and then re-installed? And, finally, the W10 tasks left behind can be unplugged (?) and deleted?
Coordinator
Nov 25, 2016 at 12:40 PM
Edited Nov 25, 2016 at 12:41 PM
Hi Rob

Your understanding is pretty good. It is the task file that my instructions have you copy out of Windows\System32. Most task files are not modified by the Windows 10 update, and so can be reinstalled quite happily. It is the modified ones that need the Windows 7 backup zip file. The good news is that third-party task files do not get modified by the update, because Microsoft do not understand them, and so will typically reinstall quite happily.

I hadn’t realised that you are having to go to Safe mode. I’m guessing that you’re finding that Repair Tasks fails immediately when you start it in normal mode. As you may have gathered from other threads, the most likely cause for this is problems with the .Net framework installation.

It is excellent that you managed to get one task reinstalled. However, I am now even more puzzled that Repair Tasks does not work. I actually figured out the command line to give you by going to look at the source code of Repair Tasks to see what it does, so I can tell you it is doing exactly the same thing! And that error message is specific to schtasks, so I don’t see how it could be coming from any other step. I can only speculate that it is a problem with running in safe mode. I will try and reproduce it.

On the other hand, this does mean that you do have a way out, albeit a very tedious one. Proxy should no longer be turning up in the list of tasks with problems; and you should be able to repeat the same steps for every failing task, including the third party ones. If you choose to try this, remember that you need to put “” around names that contain blanks or special characters, e.g.

schtasks /create /tn “\Microsoft\Windows\AppID\EDP Policy Manager”/xml “c:\Temp\EDP Policy Manager”

Some Microsoft tasks would also need to be taken from the zip file (you would be able to tell because of the error you get when using the existing file). You can unzip this in the normal way to get at the task files, but you will need to replace underscores with blanks in file names wherever they occur.

Dijji
Coordinator
Nov 26, 2016 at 6:09 PM
Hi Rob

I’ve tried to reproduce your issues with Safe Mode on my test machine. I’m finding that everything I do with Repair Tasks returns the ‘network address is invalid’ error. So also does any attempt to run schtasks from the command line. This applies to both full safe mode, and to safe mode with networking.

So, my conclusion is that Repair Tasks will not run in Safe Mode. If I could get schtasks to work, I could try and come up with some code changes that would make Repair Tasks work too , but as I can’t, I’m a bit stuck. I would say that your best bet for progress is to try and find out why it will not run in normal mode. The first step there is to look at the event log to see why it is failing.

Dijji
Dec 9, 2016 at 10:04 PM
Hello Dijji. Sorry for the lapse... I was taken out by work and family things for a couple of weeks.

Thank you for your investigation and follow-through. Interesting that Safe Mode may be presenting challenges to the effective running of Repair Tasks.

As you suggest, I will try to look into the event log and its access.

Rob
Dec 30, 2016 at 2:47 PM
I can run Repair Tasks, but I get 182 items with the ‘network address is invalid’ error. Same result in Safe mode with networking. Any ideas? Thank you.
Coordinator
Dec 30, 2016 at 6:34 PM
Hi jonwells1

This most likely indicates that the Schedule service is not running. You can check this by opening up Task Manager, selecting the Services tab, and scrolling down to the Schedule service. Its Status should be Running, but I suspect that it is Stopped.

Dijji