-
-
Save syntax-tm/30e758cd16fa7fd2cc85a3cb5d675b58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: use System File Checker (SFC) to repair any system issues | |
SFC /scannow | |
:: performs advanced system scan looking for problems | |
DISM /Online /Cleanup-Image /ScanHealth | |
:: if there are problems with the system image, RestoreHealth will attempt to | |
:: automatically repair any issues | |
DISM /Online /Cleanup-Image /RestoreHealth | |
:: run SFC again after DISM to verify there are no detected issues | |
SFC /scannow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -RunAsAdministrator | |
# use System File Checker (SFC) to repair any system issues | |
SFC /scannow | |
# performs advanced system scan looking for problems | |
DISM /Online /Cleanup-Image /ScanHealth | |
# if there are problems with the system image, RestoreHealth will attempt to | |
# automatically repair any issues | |
DISM /Online /Cleanup-Image /RestoreHealth | |
# run SFC again after DISM to verify there are no detected issues | |
SFC /scannow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment