Skip to content

Commit b1fb9b6

Browse files
[windows] Repair corrupt Windows files
Resolves #1192
1 parent c4dae7c commit b1fb9b6

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

src/windows/performance_tuning.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ This process takes a long time and a lot of system resources. A consumer HDD onl
162162

163163
Disk Defragmenter (dfrgui.exe) > Schedule: > Configure schedule... > uncheck "Run on a schedule (recommended)" > OK
164164

165+
Repair Windows Files
166+
--------------------
167+
168+
`Repair Windows files <storage.html#repair-windows-files>`__. A corrupt Windows installation can cause instability and performance issues.
169+
165170
Windows Updates
166171
---------------
167172

src/windows/storage.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@ Restore the backup:
3737

3838
[4]
3939

40+
Repair Windows Files
41+
--------------------
42+
43+
It is possible for a Windows installation to be corrupt. This can cause instability and performance issues.
44+
45+
- Open a Command Prompt as Administrator.
46+
- Use the Deployment Image Servicing and Management (DISM) tool to first fix the Windows Component Store. It includes a copy of known good Windows DLLs and executables. [15] This will not work if the Windows Update service has been disabled. [16]
47+
48+
::
49+
50+
C:\> DISM.exe /Online /Cleanup-image /Restorehealth
51+
52+
- Then use the System File Checker (SFC) tool to find and replace individually corrupted Windows DLLs and executables. [17]
53+
54+
::
55+
56+
C:\> sfc /scannow
57+
4058
Page (Swap) File
4159
----------------
4260

@@ -195,3 +213,6 @@ Bibliography
195213
12. "Introduction to page files." Microsoft Learn. March 20, 2023. Accessed October 24, 2023. https://learn.microsoft.com/en-us/troubleshoot/windows-client/performance/introduction-to-the-page-file
196214
13. "What is a swap file (swap space or page file)?" TechTarget. Accessed October 24, 2023. https://www.techtarget.com/searchwindowsserver/definition/swap-file-swap-space-or-pagefile
197215
14. "Naming Files, Paths, and Namespaces." Microsoft Learn. August 28, 2024. Accessed July 6, 2025. https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file
216+
15. "DISM Overview." Microsoft Learn. December 15, 2001. Accessed July 19, 2026. https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/what-is-dism?view=windows-11
217+
16. "Fix Windows Update corruptions and installation failures." Microsoft Learn. February 12, 2026. Accessed July 19, 2026. https://learn.microsoft.com/en-us/troubleshoot/windows-server/installing-updates-features-roles/fix-windows-update-errors
218+
17. "Use the System File Checker tool to repair missing or corrupted system files." Microsoft Support. Accessed July 19, 2026. https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e

0 commit comments

Comments
 (0)