Restart the Windows Update and Windows Installer services. You can find these services by opening the Services console, and then you can launch them by double-clicking on them. Then, open MSCONFIG, click on Services, and select “Hide all Microsoft services”. Enable “Disable all”, and then apply changes. However, do not yet reboot the system.
After you have taken those steps, install Update KB947821, and then reboot your system in Safe mode. Go to c:\Windows\, and rename the SoftwareDistribution file to SoftwareDistribution.old. After that, open your c:\Windows\System32 folder, and look for the catroot folder. Rename the catroot folder as catroot.old. Then, reboot in normal mode and your installation should be able to be carried out without error.
If you receive Windows Update error 0x8007000d or 8007000d, it means that a file needed by Windows Update is damaged or missing. Try one of these methods to resolve the problem.
Method 1: Run the Windows Update troubleshooter
Run the Windows Update Troubleshooter, then open Windows Update and try to install the update again.
Method 2: Run the DISM tool
Swipe in from the right edge of the screen, and then tap Search.
(If you're using a mouse, point to the lower-right corner of the screen, move the mouse pointer up, and then click Search.)
Enter command prompt in the search box.
In the list of results, swipe down on or right-click Command Prompt, and then tap or click Run as administrator.
In the Administrator: Command Prompt window, type the following commands. Press the Enter key after each command:
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Restorehealth
To close the Administrator: Command prompt window, type Exit, and then press Enter.