----------------
🛠️ Tool: ngsfc, an Open-Source System File Checker for Windows
===================
Overview
ngsfc is a single-binary Go utility for Windows 10 and 11 that replaces the reporting layer of sfc /scannow. The repair engine is untouched: the tool drives the same Windows Resource Protection service (TrustedInstaller) that sfc.exe uses, and it does not replace Microsoft's repair logic. What changes is the part that talks to you: which files were corrupt, why, and whether they were actually repaired.
Key Features
• Per-file results with reason and repair state, instead of the standard "see CBS.log" message. The servicing log is multi-megabyte, shared with Windows Update, and hard to parse.
• One exit code per outcome. sfc.exe returns 0 whether the system is clean or corrupt, which makes scripted checks unreliable.
• --json on every command. Outcomes are language-independent, so scripts behave the same on non-English Windows.
• scan --repair --escalate: if the repair fails, DISM /RestoreHealth runs and the scan is repeated.
• ngsfc report shows what the last scan flagged instantly, with no rescan.
• report, status, and quick run without administrator rights.
• ngsfc quick sweeps signatures of roughly 7,700 system binaries in about 8 seconds, useful as a second opinion.
Technical Background
The project grew out of a reverse-engineering exercise on sfc.exe, published as a full teardown in the repository docs. The load-bearing finding: sfc.exe contains no verification code at all. It is a thin console client for the TrustedInstaller service, and the per-file details it withholds have been sitting in the log the entire time. ngsfc consumes the same service, so scan fidelity follows the native path.
Use Cases
• Scripted integrity checks where pass/fail must be machine-readable.
• Triage on machines where repair keeps failing and DISM escalation is needed.
• Quick second-opinion sweep of system binaries when behavior looks off.
• Reading what the last scan flagged without waiting for another scan.
Installation
1. Download the release binary, rename to ngsfc.exe. Single file, no installer, no dependencies.
2. Run ngsfc status and ngsfc quick without elevation.
3. Open an elevated terminal for ngsfc scan (verify only) or ngsfc scan --repair.
Limitations
• The release binary is not code-signed, so SmartScreen may warn on first run. Each release publishes the SHA-256 of the binary, or it can be built in one command.
• Windows 10 and 11 only.
• Not independently tested here; capability claims are from the project README and its sfc.exe analysis document.
References
• Repository: MAXIVA11/NextGenSFC on GitHub
• docs/SFC-ANALYSIS.md for the full sfc.exe teardown
🔹 tool #ngsfc #Windows #SFC #TrustedInstaller
🔗 Source: https://github.com/MAXIVA11/NextGenSFC