Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

DISM /Online /Cleanup-Image /RestoreHealth

The DISM command doesn't work in an environment that runs Windows Server Update
Services, unless you configure the Specify settings for optional component
installation and component repair setting:

Set Group Policy


You can use Group Policy to specify when to use Windows Update, or a network location as a
repair source for features on demand and automatic corruption repair.

To configure Group Policy for Feature on Demand

1. Open the group policy editor. For example, on a computer that is running Windows
8.1, from the start screen, type Edit Group Policy, and then select Edit Group
Policy to open the Group Policy Editor.
2. Click Computer Configuration, click Administrative Templates, click System,
and then double-click the Specify settings for optional component installation
and component repair setting.
3. Select the settings that you want to use for Features on Demand.
4. Enabled and check Contact Windows Update directly

This way DSIM can download in group policy .

Second option is to do this :


or use note pad create a repair.bat file, copy and paste the text, run as admin.
net stop wuauserv
cd %systemroot%\SoftwareDistribution
ren Download Download.old
net start wuauserv
net stop bits
net start bits
net stop cryptsvc
cd %systemroot%\system32
ren catroot2 catroot2old
net start cryptsvc
Then try this again
DISM /Online /Cleanup-Image /RestoreHealth

You might also like