5. Resets the Winsock Catalog (requires a reboot after)
6. Restarts the PC
Be cautious if running these commands while remotely connecting to another computer. The "&&" operator tells CMD to run the commands one after the other. If you run them one at a time instead, you will lose connection to the computer before you can complete the rest. It might be best to have someone on the other end in case you lose connection, or the computer does not regain connection after the restart.
The following commands will repair/replace corrupted/missing system files, as well as clear up disk space. They must all be ran in an elevated Command Prompt:
1.
```
sfc /scannow
```
If it reports no issues found or all issues fixed, you are done. or, optionally skip to Step 6. Otherwise, continue to Step 2.
2.
```
DISM /Online /Cleanup-Image /CheckHealth
```
3.
```
DISM /Online /Cleanup-Image /ScanHealth
```
4.
```
DISM /Online /Cleanup-Image /RestoreHealth
```
5. Repeat Step 1
Note: the following optional steps will free up disk space, but also remove files allowing uninstallation of Windows Updates