If you ever start to feel that your pc is becoming more slow and buggy, and it keeps showing errors or crashes certain apps when you use it, then maybe it requires a complete scan and checkup to fix this issue. This problem can be fixed with DISM that is a command-line tool in Windows 10.
What is DISM?
DISM stands for Deployment Image Servicing and Management. It is a command-line tool that was initially built in windows 8 and onwards. It can be located from the Windows PowerShell or the command prompt. This tool can be used to prepare window images as well as it can also be used to scan and repair any windows image.
Scanning and repairing windows 10 image with DISM
Scanning and repairing with DISM brings a lot of advantages. Because it checks whether your system files are modified or corrupted in any sense, and then it will try a repair on the corrupt area to maintain the health of your windows. This will enable you to avoid lots of error messages.
- Press the window key and R button from the keyboard at the same time to open the Run dialog. Type the cmd command in the provided space and press ctrl, shift and enter at the same time. You will be prompted with a message asking for permission to run the command as administrator. Click on the yes button to run this command.
- Then type the following commands one by one from keyboard and press enter
DISM / Online / cleanup-Image / ScanHealth
When you run this command, the DISM will scan all system files and compare them with the official ones. This will let it know that the system files on your pc are consistent with the official source or not. It will take a few minutes to be completed, and keep in mind that this command doesn’t fix the corruption.
- Then you need to type the following command and press Enter
DISM / Online / Cleanup-Image / CheckHealth
When you run this command, the DISM starts checking for the image on windows 10 has any existing corruption or not. It doesn’t repair the corrupted files
- Then type the next command and press Enter
DISM / Online / Cleanup-Image / RestoreHealth
Due to this command, the DISM starts to repair the corrupted files that are detected on the system and then replaces those files from the official sources online.
Useful tips for DISM in windows 10
DISM can not only be used for this disk checkup process, but it can also be used for a lot of different methods on a windows system. You can also use it to back up or restore your driver’s data
To back up the drivers
- Create a new empty folder where you can save your driver’s backup at a later time. We have to create a folder on any drive such as drive D and name it as DriversBackup
- Press the Windows key and the R button at the same time from the keyboard to open the Run dialog. Type the cmd command and press ctrl, shift and enter at the same time to run command prompt as an administrator. When it asks for your permissions, click yes and run the command prompt.
- Type the following command and press enter
DISM / Online / export-driver / destination:D :\ drivers backup
You can choose the path backup for your drive and replace the D from the option above. Remember to replace it like “D: \DriversBackup” for the path to the backup folder that you created on your PC. If you didn’t create the folder on the D drive such as, if you created the backup folder in F drive and named it as BackupDrivers, then you should type the command line DISM /online /Add-Driver /Driver:F:\BackupDrivers /Recurse instead.
It will take some time or minutes for the command to operate and complete it
To restore your Drivers
- Press the window key and R button from the keyboard at the same time to open the Run dialog. Type the cmd command in the provided space and press ctrl, shift and enter at the same time. You will be prompted with a message asking for permission to run the command as administrator. Click on the yes button to run this command.
- Type the command below and press enter
DISM / Online / Add-Driver / Driver:D : \DriversBackup / Recurse
Remember to replace the drive if you are using any other alternative path instead of drive D. Remember to replace it like “D: \DriversBackup” for the path to the backup folder that you created on your PC. If you didn’t create the folder on the D drive such as, if you created the backup folder in F drive and named it as BackupDrivers, then you should type the command line dism /online /Add-Driver /Driver:F:\BackupDrivers /Recurse instead.
And if you want to view all DISM options, you need to follow the instructions below
- Press the window key and R button from the keyboard at the same time to open the Run dialog. Type the cmd command in the provided space and press ctrl, shift and enter at the same time. You will be prompted with a message asking for permission to run the command as administrator. Click on the yes button to run this command.
- Type the command DISM/? And then press enter key.
Then all the DISM will be made available to you to view.
Conclusion
In this study, we discussed how we could solve the window errors and corrupt files using DISM. We can fetch the official system files through the DISM command and replace them with the existing files of the windows that may be the reason for the bugs or lag in the window. We provided possible solutions and fixes for you. You can try to see which works best for you and do give us feedback about which method worked for you. You can contact us on our online support and mail.
Also Check:
- [Easy] Recover Unsaved Word Document [Windows 10, 8, 7]
- Easy way to Show Hidden Devices in Windows 7, 8.1 and 10
- Vice Emulator: Play C64 Games on Windows 10
- 4 Methods to Open Command Prompt in Folder Windows 10
FAQ’s
1. What is DISM?
DISM is a Deployment Image Servicing and Management. It is a command-line tool that can be used to update and prepare Windows images, including those used for Windows PE, or Windows Recovery Environment (Windows RE) and also the Windows Setup. The DISM can be used to service Windows image or a virtual hard disk that resides inside a window of a computer system. It can perform checks and recovery of any partition or drives through simple commands inputted by the user.
2. What do the DISM and SFC scan do?
SFC scannow attempts to fix the corrupted system files from the Windows Component Store, and it doesn’t require any internet connection for this purpose. Dism / Online / Cleanup-Image / restorehealth also attempts to fix corrupted system files, but from the Windows Update, so, therefore, internet access is required.
If your pc runs into a problem, you should run the SFC /scannow first, and if it cant remove the error, then run Dism / Online / Cleanup-Image / RestoreHealth. After when Dism command is done, just rerun the SFC /scannow and restart your PC. That’s it!