Windows 8 and 8.1 Forums


SFC /SCANNOW Command - Run in Windows 8

  1. #1
    SFC /SCANNOW Command - Run in Windows 8

    SFC /SCANNOW Command - Run in Windows 8
    How to Run "SFC /SCANNOW" Command at Boot or in Windows 8 and 8.1
    Published by Brink is online now
    12 Oct 2011
    Default SFC /SCANNOW Command - Run in Windows 8

    Published by


    Brink's Avatar
    Administrator

    Join Date: Jul 2009
    Posts: 20,620

    How to Run "SFC /SCANNOW" Command at Boot or in Windows 8 and 8.1


    information   Information
    The SFC command scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.

    This tutorial will show you how to run the sfc /scannow command at boot or in Windows 8 to attempt to repair corrupted or modified system files.

    Tip   Tip
    If you get the Windows Resource Protection Could Not Start the Repair Service error when trying to run SFC, then make sure that the Windows Modules Installer service is enabled, click/tap on Start, and set to Manual.

    Services - Start, Stop, and Disable in Windows 8

    OR

    Copy and paste the command below in the elevated command prompt, and press Enter. After the Windows Modules Installer service has started, try running the SFC command again

    net start trustedinstaller


    If SFC is unable to repair corrupted system files because the store (source) is corrupted, then you could run the Dism /Online /Cleanup-Image /RestoreHealth command to fix Windows component store corruption, then afterwards try running the SFC scan again.

    warning   Warning
    The KB3022345, KB3035583, and KB3068708 updates will cause SFC to give you a false mismatch message in SFC for files related to these updates.

    You can safely ignore these results in your SFC details since it will not affect SFC from being able to repair other system files.


    CONTENTS:








    OPTION ONE
    To Run SFC /SCANNOW Command at Boot

    1. Open a command prompt at boot.

    2. In the command prompt, type diskpart and press Enter, then type list volume and press Enter. (see screenshot below)

    Click image for larger version

    3. Make note of the drive letters for your boot drive (ex: 350MB "System Reserved" partition) and Windows 8 drive, then type Exit and press Enter. (see screenshot above)
    NOTE: If you do not have a "System Reserved" partition, and are not multi-booting with another operating system, then the boot drive and Windows 8 drive may be the same drive letter.

    4. In the command prompt, type the command below and press Enter. (see screenshot below)
    NOTE: You will see a blinking cursor at the prompt until finished. This will take a while to finish running though.


    sfc /scannow /offbootdir=C:\ /offwindir=D:\windows


    Note   Note
    You will need to substitute the drive letter of the partition/volume where your system boot files are stored in the offbootdir=C: part of the command above instead.

    You will need to substitute the drive letter of your Windows 8 partition/volume in the offwindir=D: part of the command above instead.


    Click image for larger version

    5. When the scan is complete, hopefully you will see an all is ok message like below.

    Click image for larger version

    6. Close the command prompt, and restart the computer to start Windows 8.

    Note   Note
    If SFC could not fix something, then run the command again to see if it may be able to the next time. Sometimes it may take running the sfc /scannow command 3 times restarting the PC after each time to completely fix everything that it's able to.

    If not, then run the Dism /Online /Cleanup-Image /RestoreHealth command to repair any component store corruption, restart the PC afterwards, and try the sfc /scannow command again.

    If still not, then you could do a refresh of Windows 8, or run a System Restore using a restore point dated before the bad system file occured to fix it. You may need to repeat doing a System Restore until you find a older restore point that may work.

    When running SFC offline (at boot), SFC logging in the CBS.log file is not supported to be able to create a sfcdetails.txt file in OPTION THREE below.









    OPTION TWO
    To Run SFC /SCANNOW Command in Windows 8

    1. Open an elevated command prompt or elevated PowerShell.

    2. In the elevated command prompt or PowerShell, type sfc /scannow and press Enter. (see screenshot below)
    NOTE: This may take a while to finish running.

    Click image for larger version

    3. When the scan is complete, hopefully you will see an all is ok message like the bottom screenshot below.
    NOTE: Luckily SFC was able to repair my corrupted system files automatically.

    Click image for larger version

    Click image for larger version

    Note   Note
    If SFC could not fix something, then run the command again to see if it may be able to the next time. Sometimes it may take running the sfc /scannow command 3 times restarting the PC after each time to completely fix everything that it's able to.

    If not, then run the Dism /Online /Cleanup-Image /RestoreHealth command to repair any component store corruption, restart the PC afterwards, and try the sfc /scannow command again.

    If still not, then try using OPTION ONE above to run the sfc /scannow command at boot

    If still not, then you could do a refresh of Windows 8, or run a System Restore using a restore point dated before the bad file occured to fix it. You may need to repeat doing a System Restore until you find a older restore point that may work.

    If still not, then you can use the steps in the TIP box in the OPTION THREE section below to manually replace the files that SFC could not fix.


    If you would like to get help with your SFC issue, then be sure to upload and attach your sfcdetails.txt file from OPTION THREE below in your post.











    OPTION THREE
    How to View Only the "SFC" Scan Results from the CBS.LOG


    Note   Note
    When SFC runs, it logs it's actions into the C:\Windows\Logs\CBS\CBS.log. The steps in this option will show you how to see only the specific SFC entries with the [SR] tags in this CBS.log. This can be helpful to show you what files SFC could not fix automatically if you wanted to try and manually replace them.

    When running SFC offline (at boot) in OPTION ONE, SFC logging in the CBS.log file is not supported to be able to create a sfcdetails.txt file.



    1. Open an elevated command prompt or elevated PowerShell.


    2. In the elevated command prompt or PowerShell, copy and paste the command below and press Enter.
    NOTE: This will place a sfcdetails.txt file on your desktop with only the SFC scan result details from the CBS.LOG in it.
    Code:
    findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
    3. Close the elevated command prompt.

    4. Open the sfcdetails.txt file on your desktop to see the SFC scan details in the CBS.LOG.

    5. When finished, you can safely delete the sfcdetails.txt file afterwards if you like.

    Tip   Tip
    If you need to replace a corrupted system file that SFC cannot fix, then this will show you how to:

    If you have to many files that are corrupted, then run the Dism /Online /Cleanup-Image /RestoreHealth command to repair any component store corruption, restart the PC afterwards, and try the sfc /scannow command again.

    If you only have a few, then you could manually extract a new copy directly from your Windows 8 installation DVD or USB thumb drive, or ISO file if in a virtual machine.

    Extract Files from Windows 7 Installation DVD




    That's it,
    Shawn


  2. #1


    Somewhere Over The Rainbow
    Posts : 4,115
    Windows 7 Ultimate x64/Windows 8 Consumer Preview x64/Ubuntu 11.04


    Another great tutorial, Shawn.

      My System SpecsSystem Spec

  3. #2


    Posts : 20,620
    64-bit Windows 10 build 10166


    Thank you Jaidyn.
      My System SpecsSystem Spec

  4. #3


    Posts : 994
    Windows 8 pro Retail


    Thanks Shawn! I saved these tutorials for use in the future, really nice job.
      My System SpecsSystem Spec


  5. #4


    Quote Originally Posted by Mike Lonewolf View Post
    Thanks Shawn! I saved these tutorials for use in the future, really nice job.
    Me too. Thanks Shawn.
      My System SpecsSystem Spec

  6. #5


    Posts : 20,620
    64-bit Windows 10 build 10166


    You're most welcome Mike and Kevin. Thank you.
      My System SpecsSystem Spec

  7. #6


    sherlock
    Posts : 3
    Windows 8 consumer preview


    great tutorials ^^ but, like my case i already do sfc scan
    and then can open the "PC Settings" but when i want to browse a picture
    to change user picture it won't pop-up anything. can you help me ?
      My System SpecsSystem Spec

  8. #7


    Posts : 20,620
    64-bit Windows 10 build 10166


    Hello Sunueon, and welcome to Eight Forums.

    That needs to be asked in a new thread instead since that isssue is not related to this tutorial.
      My System SpecsSystem Spec

  9. #8


    Posts : 40
    Windows 8/8.1 Pro


    I'm running this now, dumb question--how will I know all is well when it's finished? Will it state errors?

    Never mind, I see the example in the tutorial.

    If so, I run again, correct?

    If there are errors it cannot fix, it will say such and ask me to run again?
      My System SpecsSystem Spec

  10. #9


    Posts : 20,620
    64-bit Windows 10 build 10166


    Hello spddemun,

    SFC will only be able to attempt to fix system files. Anything that it repairs or cannot fix will be included in the sfcdetails.txt file that you can create in OPTION THREE. Sometimes it may take running SFC a few times or at boot to fix some files in use though.
      My System SpecsSystem Spec

Page 1 of 9 123 ... LastLast
SFC /SCANNOW Command - Run in Windows 8

Similar Threads
Tutorial Forum
Sfc /scannow command prompt
I ran the sfc /scannow command prompt on my Windows 8.1 desktop. It said it could fix all of the problems. So, I restarted it. It said the corrupted files were in C/Windows/Logs/CBS/CBS.log. I couldn't get it to paste the files on this forum. Also, command prompt gave me a not that said...
Performance & Maintenance
msg command in Windows 8
Does anyone know if it's possible to use the msg command on a Microsoft account on Windows 8.1 please? I can send messages from the MS account to other computers but unable to receive them. I get the following error message: Error 5 getting session names When switching the account back to...
Network & Sharing
windows command procesor
every time i switch on my laptop i get a windows command procesor black box pop up with writing in it i cant read what the writing says brcause it dissapears quickly some one says its a virus or spyware. when i run a virus scan no problems are found and when i run a malware scan it says no problems...
System Security
sfc/scannow : Windows Resource Protection found corrupt...
Microsoft Windows (c) 2012 Microsoft Corporation. All rights reserved. C:\Windows\system32>sfc/scannow Beginning system scan. This process will take some time. Beginning verification phase of system scan.
Performance & Maintenance
Windows 8 - SFC /scannow error and wireless problems
Hey, I have a problem which I hope some of you may be able to answer. I have a desktop running Windows 8 x64 which no matter what I try just wont remember the WIFI I connect to at home. Each time I boot up the PC I have to enter the details again I tried everything (several times), new drivers...
Performance & Maintenance
SFC/scannow command broken?
bcdedit /set increaseuserva 2500. Tried this command because of Fallen Samurai Shogun 2 not working onmy windows 8 x64 enterprise. Says command not recognised. So I tried. SFC /Scannow Said the windows resource protection could not start the repair service. So I checked services:...
Performance & Maintenance
sfc /scannow command messed up my windows 8
I can't run process explorer anymore. It crashes at startup and i can't uninstall any programs (error while trying to uninstall... blabla) i tried to use system restore but it didn't work. I am at loss. I don't know what to do. I think i will go back to windows 7. Windows 8 doesn't...
General Support

Eight Forums Android App Eight Forums IOS App Follow us on Facebook