check-windows-system-files
Checks the validity of the Windows system files (requires admin rights)
#Requires -Version 5.1
#Requires -RunAsAdministrator
try {
sfc /verifyOnly
if ($lastExitCode -ne 0) { throw "'sfc /verifyOnly' failed" }
"✅ checked Windows system files"
exit 0
} catch {
throw
}This script has no configurable parameters.