New
#160
This fixes sfc /scannow for me in Windows 10 when it refuses to run...cut & paste the following to a textfile named RepairSFC.txt (or whatever you like) and then rename RepairSFC.txt to RepairSFC.cmd, and then right-click it and "run as admin" and before your very eyes SFC will immediately begin functioning again...
@echo off
cls
setlocal
set root=%SystemRoot%\WinSxS\%PROCESSOR_ARCHITECTURE%_microsoft-windows-servicingstack
for /f "delims=" %%A in ('dir /ad /b %root%-onecore*') do set "from=%SystemRoot%\WinSxS\%%A"
for /f "delims=" %%A in ('dir /ad /b %root%_*') do set "to=%SystemRoot%\WinSxS\%%A"
takeown /F %to%\* /R /A 1>nul
icacls %to%\*.* /T /grant administrators:F 1>nul
echo on
echo F|xcopy /C /R /O /Y %from%\wrpint.dll %to%\wrpint.dll
pause