TechSpace Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

Is your Windows 10 PC slowing you down, and the SFC utility is unable to fix the problem? Then use DISM to repair the Windows image to enable SFC to do its job.

Views: 340
Votes: 0
Posted: 14 Aug, 2016
by:
Updated: 15 Aug, 2016
by:

Windows 10 includes a nifty command-line utility known as Deployment Image Servicing and Management (DISM). It has been around since Windows Vista SP1, and now comes installed by default on Windows 10 and Windows 8.1.

The utility can be used to repair and prepare Windows images, including the Windows Recovery Environment, Windows Setup, and Windows PE. Also, DISM can be used to fix the recovery image within an installation of the operating system and even to service a virtual hard disk.

If your computer begins to feel buggy and you notice problems during boot, you can use theSystem File Checker (SFC) command-line utility to check the integrity and replace any corrupted or missing protected system files with a known good version.

When SFC is unable to fix the problem, chances are the utility was unable to get the necessary files from the Windows image, which might have become broken. In this situation, you can use DISM to repair the Windows image (.wim), which then it will allow you to use the System File Checker to fix any issue with your Windows 10 installation.

In this Windows 10 guide, we'll walk you through the steps to use the command-line DISM to help you get your system back to a healthy state.

Before you begin

It's important to note that you'll be making changes to your computer, as such it's recommended to do a full backup or create a system restore point in case things go wrong, and you need to rollback the changes.

How to run DISM commands to fix Windows 10

There are three main options you can use with DISM to repair the Windows image on your computer, including CheckHealth, ScanHealth, and RestoreHealh -- and you want to use them in this order.

Using DISM with the CheckHealth option

Use the DISM command with the /CheckHealth switch to verify whether any corruption has been detected. This command can only be used to see if corruption exists, but it doesn't perform any repairs.

To run the command do the following:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and selectCommand Prompt (Admin).
  2. Type the following command and press Enter:

    DISM /Online /Cleanup-Image /CheckHealth

Using DISM with the ScanHealth option

Use the DISM command with the /ScanHealth switch to scan the Windows image for any corruption. Unlike the /CheckHealth, the /ScanHealth switch can take up to 10 minutes to complete the process.

To run the command do the following:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and selectCommand Prompt (Admin).
  2. Type the following command and press Enter:

    DISM /Online /Cleanup-Image /ScanHealth

Using DISM with the RestoreHearlh option

Use the DISM command with the /RestoreHealth switch to scan the Windows image for any corruption and to perform a repair automatically. Unlike the /ScanHealth switch, the /RestoreHealth switch can take up to 20 minutes to complete the process.

To run the command do the following:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and selectCommand Prompt (Admin).
  2. Type the following command and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth

Note: While the running DISM using the /RestoreHealth or /ScanHealth, you will notice the process will seem stuck at 20% or 40%, but it's normal behavior. After a few minutes, the operation will finish as expected.

When you run the command mentioned above, DISM will try to use Windows Update to replace the damaged files. However, if the problem has also extended to the Windows Update components, then you'll need to specify a source containing the known good files to repair the image.

Using DISM with the RestoreHearlh and Source options

You can specify a new location for the known good files by using the /Source switch alongside /RestoreHealth.

Before you can use the repair commands, you will either need a copy of the install.wim file from another computer, a Windows 10 installation media, or the Windows 10 ISO file. It's also very important that the source of the known good files matches the same version, edition, and language of the operating system you're using.

You can download the ISO for Windows 10 using these instructions:

  1. Visit the Microsoft Windows 10 download page.
  2. Click the Download tool now button.
  3. Double-click the file to run the Media Creation Tool.
  4. Follow the on-screen directions to create an ISO file with the same version and edition of your current version of Windows 10.
  5. Once the process completes, double-click the file to mount the ISO, and note the drive letter as you'll need it set the source path.

Note: If you come across any issues using the ISO using the Media Creation Tool, you can try downloading the Windows 10 installation files from the Microsoft's Tech Bench Upgrade Program site.

Now you are ready to run the command to fix the Windows image:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and selectCommand Prompt (Admin).
  2. Type the following command and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim

    Or you can also run the following to limit the use of Windows Update:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim /LimitAccess

    Alternatively, you can also use following variant of the previous command to accomplish the same task:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:repairSource\install.wim:1 /LimitAccess

Note: Remember to replace "repairSource" for the path to the source with known good files. For example, D:\Sources\install.wim.

The command will perform a Windows image repair using the known good files included within theinstall.wim file using the Windows 10 installation media, and without trying to use Windows Update as a source to download the required files for repair.

Using DISM with an install.ESD file

Alternatively, you can not only specify a source pointing to install.WIM, but you can also use aninstall.ESD file, which is an encrypted version of Windows image.

If you have upgraded to Windows 10 from a previous version of the operating system, the installation files may still stored on the C: drive, which means that you may just have a source of known good files.

To use the install.esd to repair the Windows image in your computer use the following steps:

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and selectCommand Prompt (Admin).
  2. Type the following command and press Enter:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\Install.esd

    Or you can also run the following to limit the use of Windows Update:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:C:\$Windows.~BT\Sources\Install.esd /LimitAccess

    Alternatively, you can also use following variant of the previous command to accomplish the same task:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:C:\$Windows.~BT\Sources\Install.esd:1 /LimitAccess

    Or if the install.esd is located on another drive use the following command:

    DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\Install.esd

Note: Remember to replace "repairSource" for the path to the source with known good files. For example, D:\Sources\install.esd.

The Deployment Image Servicing and Management (DISM) utility will always create a log file at%windir%/Logs/CBS/CBS.log capturing any problems the command-line utility fixed or found.

How to repair Windows 10 problems

The instructions you've learned thus far are to repair the Windows image. Now you can use the Windows image to fix the problems in your Windows 10 installation using the System File Checker (SFC) utility.

  1. Use the Windows key + X keyboard shortcut to open the Power User menu and selectCommand Prompt (Admin).
  2. In the Command Prompt type the following command and press Enter:

    sfc /scannow

credit: windowscentral.com 

Others in this Category
document How to Clear Your Computer’s CMOS to Reset BIOS Settings
document Install Hyper-V and create a virtual machine
document Configure DHCP Using Policy-based Assignment
document What Are Domains and Forests?
document Phoenix ISA/MCA/EISA BIOS Beep Codes
document How to make a self extracting archive that runs your setup.exe with 7zip -sfx switch
document Configuring a Syslog Agent in Windows Server 2012
document Configuring PHP Development Environment in Windows
document Installing and Configuring target iSCSI server on Windows Server 2012
document How To Make UEFI Bootable USB Flash Drive to Install Windows 8
document TCP/IP Command-line
document How to set up an Internet email account in Outlook 2013 or 2016
document Enable Hyper-V on Windows 8.1
document Quickly Turn ON/OFF Windows Firewall Using Command Line
document How to List All of the Windows and Software Updates Applied to a Computer
document How to Repair a Windows 7 System with an Installation Disc
document How to Create Bootable USB from a Windows ISO
document How to Create Bootable USB from an IMG File
document 20 Terminal shortcuts developers need to know
document How to Update Your BIOS
document Getting Started With Lync Mobile 2010 For Android Devices
document "Attachment size exceeds the allowable limit" error when you add a large attachment to an email message in Outlook
document How do I renew the IP address for my computer ?
document How to make a full backup of a Windows 10 or Windows 8.1 PC
document How to create a System Restore Point in Windows 10 with a simple double-click
document How to properly remove the Windows.old folder on Windows 10
document How control your Windows 10 PC or phone with another computer with the Connect app
document How to use Bing images within Office and Edge on Windows 10 PC.
document How to fix taskbar search not working in Windows 10
document How to disable or uninstall OneDrive on Windows 10 PC
document How to re-activate Windows 10 after a hardware change
document How to change the system language across your whole Windows 10 PC
document Use Windows Defender Offline to remove tough viruses from your Windows 10 PC
document 16 Essential keyboard shortcuts everyone should know using Continuum for phones
document How to disable Action Center in Windows 10
document How to use Storage Spaces in Windows 10
document How to generate a Battery Report in Windows 10.
document HOW TO CONTROL YOUR PRIVACY IN CHROMEBOOKS VS. WINDOWS 10
document Create Fake File in Window PC in Any Size and Any Format
document INCREASE BATTERY LIFE OF LAPTOP EASILY
document How to perform an image backup in Windows 8.1 or 10
document Block Windows 10 Upgrade
document Chrome reset for adware issues
document Revert from Windows 10 back to previous operating system
document Windows 7 Guide to using Microsoft Security Essentials
document Force Dragon Naturally Speaking to load a particular user profile
document Texthelp Read and Write Gold Prediction returns strange results or receives double letters
document Connect Powershell to your Windows Azure subscription
document How to set up desktop background image rotation in Windows 8
document How to adjust your Laptops screen brightness in Windows 8/8.1
document Microsoft Security Essential Install, Windows 7
document Set the default Microsoft Word template back to a blank document
document Schedule Windows to shutdown or restart after a time limit
document 20 Windows 8 and 8.1 shortcuts
document Bypass Windows 8 and 8.1 login screen
document All the Ways You Can Still Get Windows 10 for Free
document The Complete Guide to Giving Better Family Tech Support
document How to Stop Skype from Running in the Background on Windows 10
document How to Upgrade to a Larger Hard Drive Without Reinstalling Windows
document How to Find and Remove Duplicate Files on Windows
document Scammers Are Using a Fake Version of AdwCleaner to Trick People
document How to Use OneDrive as Your Default Save Location on Windows 8.1
document How To Fix a Blue Screen of Death
document How To Fix Comdlg32.dll Not Found or Missing Errors
document How to Fix Fm20.dll Not Found or Missing Errors
document How to Fix Gdi32.dll Not Found or Missing Errors
document How To Fix Libxml2.dll Not Found or Missing Errors
document How to Fix Mfc42.dll Not Found or Missing Errors
document How to Fix Mfc90.dll Not Found or Missing Errors
document How To Fix Msvcp71.dll Not Found or Missing Errors
document How To Fix Msvcp80.dll Not Found or Missing Errors
document How To Fix Msvcr70.dll Not Found or Missing Errors
document How To Fix Msxml6.dll Errors
document How to Fix Ole32.dll Not Found or Missing Errors
document How To Fix Oleaut32.dll Not Found or Missing Errors
document How To Fix Shell32.dll Not Found or Missing Errors
document How To Fix Sqlite3.dll Not Found or Missing Errors
document How To Fix Ssleay32.dll Not Found or Missing Errors
document How To Fix STOP 0x00000005 Errors
document How To Fix STOP 0x0000007B Errors
document Keep the Windows 10 Taskbar Visible While Using the On-Screen Keyboard
document EdgeDeflector Forces Cortana to Use Your Default Web Browser
document How to Move the Clock to Right-Most Corner on the Taskbar in Windows 10
document Add Control Panel (Or Any Program) To Your Right-Click Menu With a Registry Tweak
document Six Keyboard Shortcuts Every Computer User Should Know
document How to Upgrade Your Computer's Login Screen
document How to Use Windows 8's New File History Backup (aka Time Machine for Windows)
document What Kind of Maintenance Do I Need to Do on My Windows PC?
document How to Do a Clean Install of Windows Without Losing Your Files, Settings, and Tweaks
document How to disable Microsoft Windows 10 keylogger (enabled by default)
document How to Use the Cortana Voice Assistant in Windows 10
document How to Map a Network Drive in Windows 10
document How to Sync Your iPhone with Windows 10
document How to turn Off Windows Update in Windows 10
document How to Change a NetBIOS Name
document How to turn off Windows Automatic Updates in Windows 8/8.1
document How To Disable Updates in Windows 7
document How to Run Disk Cleanup on a Windows 7 Computer
document How to Check If Windows 10 Is Activated or Not
document How to Check CPU Speed
document How to Create a Shortcut to Windows Update in Windows 10
document How to Enter the BIOS Setup Utility or Boot Menu with windows
document How to Install Drivers
document How to Check the Application Event Log for Errors
document How to Optimize Windows 10 Performance by tweaking Visual Effects
document How to Setting Password Protected Print Jobs
document How to Change User Account Name in Windows 10
document How to Set Up and Use Remote Desktop for Windows 10
document How to Find Drivers for Devices Using a Hardware ID
document How to Changing BIOS mode from UEFI to Legacy
document How to Speed Up Windows 10
document How to Outlook 2010 - Rebuild the index file
document How To Fix Outlook 2016 Search Problems
document How to Release and renew IP address
document How to HP Printers - USB Printer Setup (Windows)
document How to disable Windows Defender in Windows 7
document How to Turn On or Off Windows Defender in Windows 8 and 8.1
document How to Use Simple IF Statements in Excel
document Why Does 64-Bit Windows Need Two Program Files Folders?
document How to Assign a Static IP Address in Windows 7, 8, 10, XP, or Vista
document How to manually add a print server port?
document How to Join Your Computer to a Domain
document How to Force a Blue Screen in Windows
document How to Use All of Windows 10 Backup and Recovery Tools
document How To Repair HDD with DLC 2015
document How to change XAMPP apache server port?
document How to find computer serial number
document How to use Rufus to create a bootable USB drive to install (almost) any OS
document How do I format a USB Flash Drive to NTFS file system?
document Change RAID Type of a Volume or Disk Group
document Create an Admin User Account Using CMD Prompt (Windows)
document How to Find Your MAC Address in Windows 10
document How To Repair Windows 10
document Repair an Office application
document Add an email account to Outlook for PC
document How to install Office 365 on Windows PC
document How to test your home internet connection speed



RSS