Repair MSFT Windows Operating System
Note: When you run this command, DISM uses Windows Update to provide the files that are required to fix corruptions. However, if your Windows Update client is already broken, use a running Windows installation as the repair source, or use a Windows side-by-side folder from a network share or from removable media, such as the Windows DVD, as the source of the files. To do this, run the following command instead: DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
Note: Replace the C:\RepairSource\Windows placeholder with the location of your repair source.
Backup all data before attempting any of the following:
Open an elevated Command-line shell:
- Press and release the windows logo key on the keyboard
- Type cmd
- Click Run as administrator
- Click Yes on the User Account Control dialogue box
- Type the following:
- DISM.exe /Online /Cleanup-image /Restorehealth
- May take several minutes to complete, depending upon system setup.
Related articles:
https://www.youtube.com/watch?v=xtWCBiTIjyI
https://learn.microsoft.com/en-us/troubleshoot/windows-server/deployment/fix-windows-update-errors
System File Checker:
Note: It is not recommended to run this on a daily bases, as read and write will wear down the storage device.
Note: If you are running Windows 10, Windows 8.1 or Windows 8, first run the inbox Deployment Image Servicing and Management (DISM) tool prior to running the System File Checker
Open an elevated command-line shell:
- Press the Windows logo key on the keyboard,
- Type cmd
- Click Run as administrator
- Click Yes on the User Account Control dialogue box
- Type either step 6 or step 7, depending upon your scenario/situation:
- sfc /scannow.
- sfc /verifyonly
Note: This will replace or repair corrupted or missing system files and dynamic link library files. Backup all data before attempting. Depending upon system setup, it may take several hours to complete.
Related articles
https://www.lifewire.com/scan-and-fix-your-hard-drive-3506877
https://learn.microsoft.com/en-us/windows/win32/wfp/system-file-checker
https://learn.microsoft.com/en-us/troubleshoot/windows-server/deployment/system-file-checker
Comments
Post a Comment