Windows Server 2016 TP 14300 HowTo Fix Sfc /scannow (solved)

Discussion in 'Windows Server' started by Alberto_C, Jun 3, 2016.

  1. Alberto_C

    Alberto_C MDL Junior Member

    Oct 21, 2015
    #1 Alberto_C, Jun 3, 2016
    Last edited by a moderator: Apr 20, 2017

    In Windows Server 2016 TP 14300 i have a problem with sfc /scannow.
    The service dont start.

    Here is the solution :

    (Important these commands need to be run as a batch file - scanfix.cmd)

    1. Click file explorer, View, tick file name extensions (then close the file explorer window)
    2. right-click the desktop and create a new file - call it scanfix.cmd (not scanfix.cmd.txt)
    3. right-click & edit scanfix.cmd then copy and paste the commands in black below and save the file
    4. right-click scanfix.cmd - run as administrator
    5. Check 1 file was copied
    6. Right-click start, command prompt (admin) type sfc /scannow (& press enter)

    @echo off
    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