Translate

Saturday, March 19, 2016

Repair Windows 10 with DISM command in command prompt


Windows 10 while it is running you can check and fix components and the component store. (this goes far beyond of the capabilities of SFC.exe)

Instructions:
a. Start cmd.exe from start menu with right click as Admin (very important!)
b. Or Win + X Command Prompt (Admin)



You see now in the command prompt: C:\Windows\system32\
1. Check if errors are in the registry:

Dism /Online /Cleanup-Image /CheckHealth

2. Check if errors are in Windows Components Store

Dism /Online /Cleanup-Image /ScanHealth

3. Repair the registry and component store (you need online connection to Windows Update!)

Dism /Online /Cleanup-Image /RestoreHealth


If the repair is done you can double check with no2. again (/ScanHealth option)







If there are still errors you can use the components from the ISO media or the installation DVD:

DISM /Online /Cleanup-Image /RestoreHealth /source:wim:C:\install.wim:1 /limitaccess

ATTENTION you may need to adjust /source:wim:C:\install.wim:1
Probably the C: is  not the drive to the install.wim. It might be e.g. D:\sources\install.wim

Also make sure that you use the same ISO as you have as OS installed.
Simply open winver.exe to check the version of the OS.

If you need the media as you have no media. You may download it here. This also allows you to upgrade to a newer version if you are running an older one.