SFC/Scannow /Offbootdir=C:\ /Offwindir=C:\Windows
Generally speaking, if you run into errors every time you run the command SFC /scannow /offbootdir=c:\ /offwindir=c:\windows, there must have been interference from third-party software. The best solution in most of the cases is to perform the offline SFC scan in Safe Mode. Besides that, you could check out Windows Modules Installer service, apply changes…