I recently ran into a computer that was constantly failing all updates. Here is what I did to fix this issue.
- Run registry cleaner to remove orphaned registry entries. My recommendation is to download CCleaner
- Run the following commands as an Administrator from command line or Alternatively you can download Updatefix.bat (I Created This)
- Reboot your computer. The deleted files are regenerated and you can now install windows updates.
cd /d %SystemRoot%System32SMIStoreMachine
attrib -s -h *