Manually scan out all the corrupted files in your Windows OS and easily fix them with some simple commands and Windows ISO file to recover them back directly from the powershell with the below given guide.
Today most of the PC users are working on Windows Operating System, one of the best and user-friendly OS that provides numerous features to its users. Till now you might have read our lots of guides regarding Windows OS, and here we come with another great one. In this article, we will be guiding you on how to scan and fix the corrupted files in your Windows OS. Yes, it’s possible and can be easily done. Due to certain viruses or any other reasons, Windows system files can get corrupted, and your PC starts lagging and shows unknown behavior and at a time you keep on finding solutions. Rather then using antiviruses or reinstalling OS what if you can directly scan and fix the corrupted file. So have a look at complete discussed below to proceed with this.
How to Scan and Fix Corrupted Windows Files
The method is quite straightforward and easy, and you just need to enter some system commands to get the files scanned and then fix all the corrupted files and for that follow some simple steps below.
Steps To Scan and Fix Corrupted Windows Files:
Step 1. First of all, press windows button and then type Powershell, and now it will display the Windows Powershell option, right-click on it and select Run as Administrator.
Step 2. Now in PowerShell, enter the below command to scan all the corrupted files in your OS.
Step 3. Now you need to fix the files and for that, you need to enter the below command in Powershell.
Dism /Online /Cleanup-Image /RestoreHealth
Step 4. Now windows will start fixing the files, and you should be patient in this process as it will take quite a time to complete.
Step 5. Now you need the actual ISO file to get the file recovered, and for that you need to download the Windows ISO file of your particular version.
Step 6. Now when the file is downloaded simply right-click on it and choose the option mount.
Step 7. Now came back to power shell and enter the below command.
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:X:\sources\install.wim:1
Note: Replace the letter “X” with the actual drive letter of your Windows installation media.
Step 8. Now simply execute the below command in PowerShell sfc /scannow
That’s it! you are done, now you will see the message there that the windows file has been recovered successfully.
Also Read: How to Lock Specific Apps in Windows 10
Method 2: Repairing system files when windows failed to boot
Step 1. You need to have the Windows installation DVD, you can borrow one from a friend or use a Recovery drive created on any computer. Insert the Windows Installation DVD and boot it on your computer.
Step 2. Once booted, you will see the windows installation option. One the first step, you will be asked to select the language and time format. Click on ‘Next’ to continue.
Step 3. Now on the next page, you need to click on “Repair Your Computer”
Step 4. Now you will be asked how you want to continue to repair your computer. Here you need to select the option ‘Troubleshoot’
Step 5. Now in the next step, you will be given two options, you need to select “Advanced Option”
Step 6. Now under “Advanced Options” you need to select “Command Prompt”
Step 7. Now in the command prompt, you need to use the ‘dir’ command. The command will help you to find the drive letter of your Windows partition. Like in the screenshot below. D:\ has the actual windows partition.
Step 8. You need to run the ‘SFC’ command to repair the windows installation. It will fix all the corrupted files. Simply, enter the command
sfc /scannow /offbootdir=D:\ /offwindir=D:\windows
Note: you can replace D:\ with your actual drive letter in the above command
Now, wait until the scan completes. Once completed, reboot the system and enjoy. This will fix the Windows corrupted files issue.
So above guide is all about Scan and Fix Corrupted Windows Files. Use this method and easily fix any of the damaged files in your Windows OS, just by using the power shell to scan and ISO file to fix that particular files manually. So try this out today. Hope you like the guide, keep on sharing with others too. Leave a comment below if you have any related queries with this.